From fb5a6e755ddc8b9cc1c54ffc6deef775a2bf809a Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Tue, 25 Mar 2025 22:56:28 +0100 Subject: [PATCH] chore: include err in error return (#15279) --- crates/rpc/rpc-eth-api/src/helpers/trace.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/rpc/rpc-eth-api/src/helpers/trace.rs b/crates/rpc/rpc-eth-api/src/helpers/trace.rs index a2043fa588..f2ee6f0ffb 100644 --- a/crates/rpc/rpc-eth-api/src/helpers/trace.rs +++ b/crates/rpc/rpc-eth-api/src/helpers/trace.rs @@ -471,9 +471,9 @@ pub trait Trace: // apply relevant system calls let mut evm = self.evm_config().evm_with_env(db, evm_env.clone()); - system_caller - .apply_pre_execution_changes(block.header(), &mut evm) - .map_err(|_| EthApiError::EvmCustom("failed to apply 4788 system call".to_string()))?; + system_caller.apply_pre_execution_changes(block.header(), &mut evm).map_err(|err| { + EthApiError::EvmCustom(format!("failed to apply 4788 system call {err}")) + })?; Ok(()) }