htlcswitch: add causing error to log and err msg

This commit is contained in:
Oliver Gugger 2020-03-05 15:57:28 +01:00
parent a101c8eeed
commit eb531d0449
No known key found for this signature in database
GPG Key ID: 8E4256593F177720

@ -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.