Return generic error messages to clients and log details server-side; never expose stack traces or internals.
Why This Matters
Verbose errors reveal stack traces, paths, and library versions that aid attackers (OWASP A05/A09).
Related Rules
Catch this automatically on every PR
BeforeMerge scans your pull requests against this rule and dozens more. Get actionable feedback before code ships.