lnwallet/wallet: add missing error handling

This commit is contained in:
Johan T. Halseth committed 2019-05-09 14:44:53 +02:00
1 parent 183adf6e61
commit f589c86963
1 file changed
+5
+5
View File
@@ -971,7 +971,12 @@ func (l *LightningWallet) handleFundingCounterPartySigs(msg *addCounterPartySigs
txin.Witness[len(txin.Witness)-1],
)
if err != nil {
msg.err <- fmt.Errorf("cannot create script: "+
"%v", err)
msg.completeChan <- nil
return
}
output, err := l.Cfg.ChainIO.GetUtxo(
&txin.PreviousOutPoint,
pkScript, 0, l.quit,