print entire error chain

This commit is contained in:
binarybaron 2024-06-27 16:02:10 +02:00
parent b98445f9a8
commit 1532add65c
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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
))
);