mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-04-22 00:39:12 -04:00
print entire error chain
This commit is contained in:
parent
b98445f9a8
commit
1532add65c
@ -821,6 +821,7 @@ impl Request {
|
||||
.await
|
||||
.map_err(|err| {
|
||||
method_span.in_scope(|| {
|
||||
// The {:?} formatter is used to print the entire error chain
|
||||
tracing::debug!(err = format!("{:?}", err), "API call resulted in an error");
|
||||
});
|
||||
err
|
||||
|
@ -165,7 +165,7 @@ pub async fn refund(
|
||||
Ok(ExpiredTimelocks::None { blocks_left }) => {
|
||||
bail!(
|
||||
bitcoin_publication_err.context(format!(
|
||||
"Cannot refund swap because the refund timelock has not expired yet. Blocks left: {}",
|
||||
"Cannot refund swap because the cancel timelock has not expired yet. Blocks left: {}",
|
||||
blocks_left
|
||||
))
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user