Skip to content

Commit 822e474

Browse files
committed
sweepbatcher: wrap error from MuSig2CreateSession
Make it more clear in the logs, what is the source of the error.
1 parent 99d3fd5 commit 822e474

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sweepbatcher/sweep_batch.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,8 @@ func (b *batch) coopSignBatchTx(ctx context.Context, packet *psbt.Packet,
996996
),
997997
)
998998
if err != nil {
999-
return err
999+
return fmt.Errorf("signerClient.MuSig2CreateSession "+
1000+
"failed: %w", err)
10001001
}
10011002

10021003
// With the session active, we can now send the server our

0 commit comments

Comments
 (0)