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

+2 -2
View File
@@ -195,7 +195,7 @@ func (m *ChanStatusManager) start() error {
// have been pruned from the channel graph but not yet from our
// set of channels. We'll skip it as we can't determine its
// initial state.
case err == channeldb.ErrEdgeNotFound:
case errors.Is(err, channeldb.ErrEdgeNotFound):
log.Warnf("Unable to find channel policies for %v, "+
"skipping. This is typical if the channel is "+
"in the process of closing.", c.FundingOutpoint)
@@ -580,7 +580,7 @@ func (m *ChanStatusManager) disableInactiveChannels() {
// that the channel has been closed. Thus we remove the
// outpoint from the set of tracked outpoints to prevent
// further attempts.
if err == channeldb.ErrEdgeNotFound {
if errors.Is(err, channeldb.ErrEdgeNotFound) {
log.Debugf("Removing channel(%v) from "+
"consideration for passive disabling",
outpoint)