fleetlint Policy for a fleet of repositories
v0.4
Getting started

slop/vague-errors

Error messages say what failed

Severityinfo
Tiersall
Stacksany
Scoperoot
Kindexpr
Sourcelibrary v0.1.0
Selected byfleetlint-slop@v0.1.0

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]')
false

Fix

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.1.0.