Skip to content

Commit

Permalink
Store exception type along with message in t8n (#1021)
Browse files Browse the repository at this point in the history
  • Loading branch information
SamWilsn committed Oct 31, 2024
1 parent 776e44b commit 41de935
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ethereum_spec_tools/evm_tools/t8n/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 41de935

Please sign in to comment.