fix: error message on rpc errors (#1804)

This commit is contained in:
Niklas Adolfsson
2024-10-01 20:01:07 +02:00
committed by GitHub
parent b5209a162e
commit cbf05d1999
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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}.")]
@@ -135,7 +135,7 @@ pub enum Error {
#[error(transparent)]
DisconnectedWillReconnect(#[from] DisconnectedWillReconnect),
/// Other rpc error.
#[error("{0}")]
#[error(transparent)]
RpcError(RpcError),
}
+1 -1
View File
@@ -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}")]