trident icon indicating copy to clipboard operation
trident copied to clipboard

🐛 [BUG] - Tx error handler Hook can’t influence classification (due to the void return); docs suggest Result-based handling

Open IaroslavMazur opened this issue 5 months ago • 1 comments

Description

In Trident 0.11.0, TransactionHooks::transaction_error_handler() returns nothing (i.e. void) and is invoked after the Fuzzer has already recorded the transaction as "failed". This prevents the test author from marking certain errors as “expected” and, therefore, reclassifying them.

At the same time, the docs and the fn name, itself, imply that the hook can “handle” errors. In practice, however, the hook only lets you observe the errors - not "handle" them.

Reproduction steps

1. Write a Fuzzing test that results in an expected error (i.e. which is handled by the tested program)
2. Try to "validate" the error/mark it as "expected"
3. Observe that the executed Ix still appears in the "Ix Failed" column in the fuzzing report

OS

Mac

IaroslavMazur avatar Oct 06 '25 16:10 IaroslavMazur

Good point, the error handler was not used often tbh. But you are right, at the same time, this should be also resolved in the next release!

lukacan avatar Oct 24 '25 07:10 lukacan