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
@@ -1266,7 +1266,7 @@ func newServer(cfg *Config, listenAddrs []net.Addr,
info, e1, e2, err := s.graphDB.FetchChannelEdgesByID(
scid.ToUint64(),
)
if err == channeldb.ErrEdgeNotFound {
if errors.Is(err, channeldb.ErrEdgeNotFound) {
// This is unlikely but there is a slim chance of this
// being hit if lnd was killed via SIGKILL and the
// funding manager was stepping through the delete