mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-11-30 20:46:33 -05:00
Include entire error cause-chain in API response
This commit is contained in:
parent
4098ca848d
commit
f9dcac07fd
2 changed files with 2 additions and 2 deletions
|
|
@ -834,7 +834,7 @@ impl Request {
|
|||
.await
|
||||
.map_err(|err| {
|
||||
method_span.in_scope(|| {
|
||||
tracing::debug!(%err, "API call resulted in an error");
|
||||
tracing::debug!(err=format!("{:?}", err), "API call resulted in an error");
|
||||
});
|
||||
err
|
||||
})
|
||||
|
|
|
|||
|
|
@ -212,5 +212,5 @@ async fn execute_request(
|
|||
request
|
||||
.call(Arc::clone(context))
|
||||
.await
|
||||
.map_err(|err| jsonrpsee_core::Error::Custom(err.to_string()))
|
||||
.map_err(|err| jsonrpsee_core::Error::Custom(format!("{:#}", err)))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue