Actionable Error Message Rewrite

Error messages rewritten to state cause, fix and next step.

Beginner · Works with ChatGPT, Claude, Gemini, Copilot

The prompt

Rewrite these error messages so they state the cause and the next step, not just that something failed.

Current error messages:
{{ERROR_MESSAGES}}

Who sees them:
{{AUDIENCE}}

For each one, keep it short, name the likely cause, and say what the reader should do next. If the current message is too generic to know the real cause, say what additional detail the code would need to capture instead of inventing a cause.

Why this prompt works

Naming the audience changes the right tone and detail level far more than any wording trick would.

How to customize it

  • Paste the literal current strings, not a description of them
  • Say what happens after the user reads the message

Common mistakes

  • Making messages friendlier without making them more actionable
  • Exposing internal stack details to end users

Example

Input

Current error messages: "Error: something went wrong" / "Invalid input"

What a good answer looks like

A rewritten message per input, each with cause and next step in one or two sentences.

Make this prompt fit your work

ModelCoach.ai scores your version, shows what to improve and explains why, right inside ChatGPT, Claude, Gemini and Copilot.

Related prompts