fix: Format cooperative redeem reject using thiserror (#1716)

This commit is contained in:
binarybaron 2024-07-16 20:13:58 +02:00 committed by GitHub
parent 1f322b78c8
commit 85c4db1d75
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -339,7 +339,7 @@ async fn next_state(
} }
Ok(Rejected { reason, .. }) => { Ok(Rejected { reason, .. }) => {
tracing::error!( tracing::error!(
?reason, %reason,
"Alice rejected our request for cooperative XMR redeem" "Alice rejected our request for cooperative XMR redeem"
); );
return Err(reason) return Err(reason)
@ -347,7 +347,7 @@ async fn next_state(
} }
Err(error) => { Err(error) => {
tracing::error!( tracing::error!(
?error, %error,
"Failed to request cooperative XMR redeem from Alice" "Failed to request cooperative XMR redeem from Alice"
); );
return Err(error) return Err(error)