Supply the revert reason in the logs (#200)

This commit is contained in:
Omar
2025-11-02 20:54:11 +03:00
committed by GitHub
parent e09be4f3fa
commit 2af1a62319
3 changed files with 19 additions and 5 deletions
+4 -1
View File
@@ -598,7 +598,10 @@ where
let expected = !assertion.exception;
let actual = receipt.status();
if actual != expected {
let revert_reason = tracing_result.revert_reason.as_ref();
let revert_reason = tracing_result
.revert_reason
.as_ref()
.or(tracing_result.error.as_ref());
tracing::error!(
expected,
actual,