Skip to content

Commit

Permalink
refactor: more details for JSON RPC errors (#1495)
Browse files Browse the repository at this point in the history
  • Loading branch information
yangby-cryptape authored Oct 24, 2023
1 parent eea7af5 commit 9a0bdbd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/api/src/jsonrpc/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ use crate::jsonrpc::web3_types::BlockId;

#[derive(Clone, Display, Debug)]
pub enum RpcError {
#[display(fmt = "Decode interoperation signature r error")]
#[display(fmt = "Decode interoperation signature r error since {}", _0)]
DecodeInteroperationSigR(String),
#[display(fmt = "Decode interoperation signature s error")]
#[display(fmt = "Decode interoperation signature s error since {}", _0)]
DecodeInteroperationSigS(String),
#[display(fmt = "Invalid address source")]
InvalidAddressSource,
Expand Down Expand Up @@ -56,7 +56,7 @@ pub enum RpcError {

#[display(fmt = "EVM error {}", "decode_revert_msg(&_0.ret)")]
Evm(TxResp),
#[display(fmt = "Internal error")]
#[display(fmt = "Internal error: {}", _0)]
Internal(String),
}

Expand Down

0 comments on commit 9a0bdbd

Please sign in to comment.