Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: more details for JSON RPC errors #1495

Merged
merged 1 commit into from
Oct 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading