multi: return verbose errors when fetching edges
This commit is contained in:
6 files changed
+27
-24
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user