multi: return verbose errors when fetching edges

This commit is contained in:
yyforyongyu committed 2024-06-10 08:40:18 +08:00
1 parent 78cc1619d7
commit e61cba8d22
6 files changed
+27 -24

No files matched your search

+1 -1
View File
@@ -974,7 +974,7 @@ func (p *Brontide) loadActiveChannels(chans []*channeldb.OpenChannel) (
info, p1, p2, err := graph.FetchChannelEdgesByOutpoint(
&chanPoint,
)
if err != nil && err != channeldb.ErrEdgeNotFound {
if err != nil && !errors.Is(err, channeldb.ErrEdgeNotFound) {
return nil, err
}