Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 1.11 KB

Misleading `revert` messages.md

File metadata and controls

27 lines (22 loc) · 1.11 KB

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.

Recommendation:

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.


Slide Screenshot

185.jpg


Slide Text

  • OpenZeppelin Compound Finding N02
  • Error Handling
  • Revert Messages
  • Uninformative & Misleading
  • Use Informative & Meaningful Messages

References


Tags