multi: return verbose errors when fetching edges

This commit is contained in:
yyforyongyu
2024-06-07 01:14:33 +08:00
parent 78cc1619d7
commit e61cba8d22
6 changed files with 27 additions and 24 deletions

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
}