Error messages are intended to notify users about failing conditions, and should provide enough information so that the appropriate corrections needed to interact with the system can be applied.
Uninformative error messages greatly damage the overall user experience, thus lowering the system's quality.
Consider not only fixing the specific issues mentioned, but also reviewing the entire codebase to make sure every error message is informative and user-friendly enough.
Furthermore, for consistency, consider reusing error messages when extremely similar conditions are checked.
- OpenZeppelin Compound Finding N02
- Error Handling
- Revert Messages
- Uninformative & Misleading
- Use Informative & Meaningful Messages