From d41f6574174d0a7d35ffcc6c3ff4d3740f5251ec Mon Sep 17 00:00:00 2001 From: Sabaun Taraki Date: Mon, 9 Jan 2023 17:43:50 +0300 Subject: [PATCH] Make verbose rpc error display (#758) * Make verbose rpc erro display * Apply review results * Minor fix doc-comment --- subxt/src/error.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/subxt/src/error.rs b/subxt/src/error.rs index dd87277646..b2548e43cf 100644 --- a/subxt/src/error.rs +++ b/subxt/src/error.rs @@ -107,13 +107,14 @@ impl From for Error { /// An RPC error. Since we are generic over the RPC client that is used, /// the error is boxed and could be casted. #[derive(Debug, thiserror::Error)] -#[error("RPC error")] pub enum RpcError { // Dev note: We need the error to be safely sent between threads // for `subscribe_to_block_headers_filling_in_gaps` and friends. /// Error related to the RPC client. + #[error("RPC error: {0}")] ClientError(Box), /// The RPC subscription dropped. + #[error("RPC error: subscription dropped.")] SubscriptionDropped, }