From 822e4746c126fd06441a146e7e619e0ef1089c4a Mon Sep 17 00:00:00 2001 From: Boris Nagaev Date: Sun, 23 Jun 2024 12:54:49 -0300 Subject: [PATCH] sweepbatcher: wrap error from MuSig2CreateSession Make it more clear in the logs, what is the source of the error. --- sweepbatcher/sweep_batch.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sweepbatcher/sweep_batch.go b/sweepbatcher/sweep_batch.go index eed0afd..39c8181 100644 --- a/sweepbatcher/sweep_batch.go +++ b/sweepbatcher/sweep_batch.go @@ -996,7 +996,8 @@ func (b *batch) coopSignBatchTx(ctx context.Context, packet *psbt.Packet, ), ) if err != nil { - return err + return fmt.Errorf("signerClient.MuSig2CreateSession "+ + "failed: %w", err) } // With the session active, we can now send the server our