Skip to content

Commit 9297f0f

Browse files
committed
tapchannel: fix error wrapping
1 parent 4a1ce01 commit 9297f0f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tapchannel/aux_funding_controller.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1264,7 +1264,7 @@ func (f *FundingController) processFundingMsg(ctx context.Context,
12641264
)
12651265
if err != nil {
12661266
return tempPID, fmt.Errorf("unable to create "+
1267-
"commitment: %v", err)
1267+
"commitment: %w", err)
12681268
}
12691269

12701270
// Do we expect more proofs to be incoming?
@@ -1431,16 +1431,14 @@ func (f *FundingController) processFundingReq(fundingFlows fundingFlowIndex,
14311431
fundReq.ctx, f.cfg.ChainWallet,
14321432
)
14331433
if uErr != nil {
1434-
log.Errorf("unable to unlock "+
1435-
"inputs: %v", uErr)
1434+
log.Errorf("unable to unlock inputs: %v", uErr)
14361435
}
14371436

14381437
uErr = fundingState.unlockAssetInputs(
14391438
fundReq.ctx, f.cfg.CoinSelector,
14401439
)
14411440
if uErr != nil {
1442-
log.Errorf("Unable to unlock "+
1443-
"asset inputs: %v",
1441+
log.Errorf("Unable to unlock asset inputs: %v",
14441442
uErr)
14451443
}
14461444

0 commit comments

Comments
 (0)