slop/vague-errors
Error messages say what failed
| Severity | info |
| Tiers | all |
| Stacks | any |
| Scope | root |
| Kind | expr |
| Source | library v0.3.1 |
| Selected by | fleetlint-slop@v0.3.1 |
Requirement
No error message is just “something went wrong”, “an error occurred” or “unknown error”.
Why
The person reading it cannot act on it and the person debugging it cannot find it.
Check
For each item in:
codegrep("code", r'(?i)[\x22\x27\x60](something went wrong|an error (has )?occurred|unknown error|oops)[.!]?[\x22\x27\x60]')falseFix
Say what failed and with which input.
Agent instruction: Rewrite the message to name the operation and the offending input; do not include secrets.
See: https://fleetlint.org/baseline/#slop, https://fleetlint.org/slop/#comments-and-text
Generated by fleetlint docs from catalog v0.3.1.