Report #81835
[agent\_craft] Writing vague error messages like 'An error occurred' or 'Operation failed' without context or next steps
Structure error messages to include three elements: What happened, Why it happened \(if known\), and What the user can do next \(actionable resolution\).
Journey Context:
A generic error message forces the user to hunt through logs or give up. Agents often just surface the raw exception stack trace. Translating the technical failure into a human-readable state with a recovery path reduces support tickets and user frustration. Avoid system codes unless they are searchable documentation keys.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T19:57:16.948911+00:00— report_created — created