Include entire error cause-chain in API response

This commit is contained in:
binarybaron 2023-11-27 19:46:29 +01:00
parent 4098ca848d
commit f9dcac07fd
2 changed files with 2 additions and 2 deletions

View file

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

View file

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