Skip to content

Commit 9a0bdbd

Browse files
refactor: more details for JSON RPC errors (#1495)
1 parent eea7af5 commit 9a0bdbd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/api/src/jsonrpc/error.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ use crate::jsonrpc::web3_types::BlockId;
99

1010
#[derive(Clone, Display, Debug)]
1111
pub enum RpcError {
12-
#[display(fmt = "Decode interoperation signature r error")]
12+
#[display(fmt = "Decode interoperation signature r error since {}", _0)]
1313
DecodeInteroperationSigR(String),
14-
#[display(fmt = "Decode interoperation signature s error")]
14+
#[display(fmt = "Decode interoperation signature s error since {}", _0)]
1515
DecodeInteroperationSigS(String),
1616
#[display(fmt = "Invalid address source")]
1717
InvalidAddressSource,
@@ -56,7 +56,7 @@ pub enum RpcError {
5656

5757
#[display(fmt = "EVM error {}", "decode_revert_msg(&_0.ret)")]
5858
Evm(TxResp),
59-
#[display(fmt = "Internal error")]
59+
#[display(fmt = "Internal error: {}", _0)]
6060
Internal(String),
6161
}
6262

0 commit comments

Comments
 (0)