Include entire error cause-chain in API response

pull/1276/head
binarybaron 6 months ago
parent 4098ca848d
commit f9dcac07fd

@ -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…
Cancel
Save