From 85c4db1d7517715d643e31e02a875ce71c103409 Mon Sep 17 00:00:00 2001 From: binarybaron <86064887+binarybaron@users.noreply.github.com> Date: Tue, 16 Jul 2024 20:13:58 +0200 Subject: [PATCH] fix: Format cooperative redeem reject using thiserror (#1716) --- swap/src/protocol/bob/swap.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swap/src/protocol/bob/swap.rs b/swap/src/protocol/bob/swap.rs index 5db98690..912181d4 100644 --- a/swap/src/protocol/bob/swap.rs +++ b/swap/src/protocol/bob/swap.rs @@ -339,7 +339,7 @@ async fn next_state( } Ok(Rejected { reason, .. }) => { tracing::error!( - ?reason, + %reason, "Alice rejected our request for cooperative XMR redeem" ); return Err(reason) @@ -347,7 +347,7 @@ async fn next_state( } Err(error) => { tracing::error!( - ?error, + %error, "Failed to request cooperative XMR redeem from Alice" ); return Err(error)