htlcswitch: add causing error to log and err msg

This commit is contained in:
Oliver Gugger committed 2020-03-24 10:00:59 +01:00
1 parent a101c8eeed
commit eb531d0449
1 file changed
+2 -2
+2 -2
View File
@@ -627,7 +627,7 @@ func (l *channelLink) syncChanStates() error {
if err := l.cfg.Peer.SendMessage(true, localChanSyncMsg); err != nil {
return fmt.Errorf("Unable to send chan sync message for "+
"ChannelPoint(%v)", l.channel.ChannelPoint())
"ChannelPoint(%v): %v", l.channel.ChannelPoint(), err)
}
var msgsToReSend []lnwire.Message
@@ -3121,7 +3121,7 @@ func (l *channelLink) fail(linkErr LinkFailureError,
return
}
l.log.Errorf("failing link: %s", reason)
l.log.Errorf("failing link: %s with error: %v", reason, linkErr)
// Set failed, such that we won't process any more updates, and notify
// the peer about the failure.