more verbose error
This commit is contained in:
parent
80b84f3a60
commit
256cb5bd5d
@ -1426,9 +1426,11 @@ impl Web3ProxyApp {
|
|||||||
// TODO: what is the best way to handle an Arc here?
|
// TODO: what is the best way to handle an Arc here?
|
||||||
.map_err(|err| {
|
.map_err(|err| {
|
||||||
// TODO: emit a stat for an error
|
// TODO: emit a stat for an error
|
||||||
anyhow::anyhow!(err)
|
anyhow::anyhow!(
|
||||||
})
|
"error while caching and forwarding response: {}",
|
||||||
.context("error while forwarding and caching response")?
|
err
|
||||||
|
)
|
||||||
|
})?
|
||||||
} else {
|
} else {
|
||||||
self.balanced_rpcs
|
self.balanced_rpcs
|
||||||
.try_send_best_upstream_server(
|
.try_send_best_upstream_server(
|
||||||
@ -1439,7 +1441,10 @@ impl Web3ProxyApp {
|
|||||||
None,
|
None,
|
||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
.context("error while forwarding response")?
|
.map_err(|err| {
|
||||||
|
// TODO: emit a stat for an error
|
||||||
|
anyhow::anyhow!("error while forwarding response: {}", err)
|
||||||
|
})?
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user