diff options
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/error.rs b/src/error.rs index 7c648fab..678ab72d 100644 --- a/src/error.rs +++ b/src/error.rs @@ -43,8 +43,8 @@ pub enum Error { #[error(display = "Tokio join error: {}", _0)] TokioJoin(#[error(source)] tokio::task::JoinError), - #[error(display = "RPC error: {}", _0)] - RPCError(String), + #[error(display = "RPC error: {} (status code {})", _0, _1)] + RPCError(String, StatusCode), #[error(display = "Bad request: {}", _0)] BadRequest(String), |