Skip to content

Commit bbe0b44

Browse files
committed
improves database error logging
1 parent a74ef27 commit bbe0b44

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/driver/alloy.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,12 @@ impl<Db: Database> core::fmt::Display for BundleError<Db> {
6161
Self::TransactionSenderRecoveryError(_) => {
6262
write!(f, "transaction sender recovery error")
6363
}
64-
Self::EVMError { inner: _ } => write!(f, "internal EVM Error"),
64+
Self::EVMError { inner } => match inner {
65+
EVMError::Database(err) => write!(f, "database error: {}", err),
66+
EVMError::Transaction(err) => write!(f, "invalid transaction: {}", err),
67+
EVMError::Header(err) => write!(f, "invalid header: {}", err),
68+
EVMError::Custom(err) => write!(f, "error: {}", err),
69+
},
6570
}
6671
}
6772
}

0 commit comments

Comments
 (0)