Skip to content

Commit

Permalink
fix: error message on rpc errors (#1804)
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasad1 authored Oct 1, 2024
1 parent b5209a1 commit cbf05d1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lightclient/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pub enum LightClientError {
#[derive(Debug, thiserror::Error)]
pub enum LightClientRpcError {
/// Error response from the JSON-RPC server.
#[error("{0}")]
#[error(transparent)]
JsonRpcError(JsonRpcError),
/// Smoldot could not handle the RPC call.
#[error("Smoldot could not handle the RPC call: {0}.")]
Expand Down
2 changes: 1 addition & 1 deletion subxt/src/backend/rpc/reconnecting_rpc_client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ pub enum Error {
#[error(transparent)]
DisconnectedWillReconnect(#[from] DisconnectedWillReconnect),
/// Other rpc error.
#[error("{0}")]
#[error(transparent)]
RpcError(RpcError),
}

Expand Down
2 changes: 1 addition & 1 deletion subxt/src/error/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pub enum Error {
#[error("Scale codec error: {0}")]
Codec(#[from] codec::Error),
/// Rpc error.
#[error("Rpc error: {0}")]
#[error(transparent)]
Rpc(#[from] RpcError),
/// Serde serialization error
#[error("Serde json error: {0}")]
Expand Down

0 comments on commit cbf05d1

Please sign in to comment.