🌟 Feature Request
Communicate system hook failures to users (probably through returndata)
📝 Description
Currently, system hooks can fail for three kinds of reasons:
- Bug in the system hook itself
- Misuse from another subsystem (bootloader provided malformed calldata)
- User provided invalid inputs (e.g. L2 base token can't burn the nominal token value)
The third kind of errors is currently masked and the corresponding message is logged. But users don't get to see it.
We need to communicate the reason back to users, probably through revert messages.
🤔 Rationale
Users have to be able to distinguish between ZKOS bugs and incorrect use of system hooks, and the error messages should be actionable and adhere to HCD principles.