contractcourt: properly log error if unable to update chan close state

This commit is contained in:
Olaoluwa Osuntokun committed 2018-04-10 16:55:32 -07:00
1 parent 12cb35a6c9
commit bc029b9cd4
1 file changed
+2 -2
+2 -2
View File
@@ -747,8 +747,8 @@ func (c *CooperativeCloseCtx) LogPotentialClose(potentialClose *channeldb.Channe
err := c.watcher.chanState.CloseChannel(potentialClose) err := c.watcher.chanState.CloseChannel(potentialClose)
if err != nil { if err != nil {
log.Warnf("unable to update latest close for "+ log.Warnf("unable to update latest close for "+
"ChannelPoint(%v)", "ChannelPoint(%v): %v",
c.watcher.chanState.FundingOutpoint) c.watcher.chanState.FundingOutpoint, err)
} }
err = c.watcher.markChanClosed() err = c.watcher.markChanClosed()