From ce1bb2e154ae8fc8aa00fe380937b52228134586 Mon Sep 17 00:00:00 2001 From: Sam Wilson Date: Thu, 17 Oct 2024 09:50:40 -0400 Subject: [PATCH] Store exception type along with message in t8n (#1021) --- src/ethereum_spec_tools/evm_tools/t8n/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ethereum_spec_tools/evm_tools/t8n/__init__.py b/src/ethereum_spec_tools/evm_tools/t8n/__init__.py index 04a1300332..0f4ed931d2 100644 --- a/src/ethereum_spec_tools/evm_tools/t8n/__init__.py +++ b/src/ethereum_spec_tools/evm_tools/t8n/__init__.py @@ -385,9 +385,9 @@ def apply_body(self) -> None: except EthereumException as e: # The tf tools expects some non-blank error message # even in case e is blank. - self.txs.rejected_txs[tx_idx] = f"Failed transaction: {str(e)}" + self.txs.rejected_txs[tx_idx] = f"Failed transaction: {e!r}" self.restore_state() - self.logger.warning(f"Transaction {tx_idx} failed: {str(e)}") + self.logger.warning(f"Transaction {tx_idx} failed: {e!r}") else: self.txs.add_transaction(tx) gas_consumed = process_transaction_return[0]