Prompt Library › ⚙️ Technical › Error Message Rewriter
GPT-4o ⚙️ Technical Basic

Error Message Rewriter

Transform cryptic error messages into clear, actionable messages that tell users exactly what went wrong and how to fix it.

👁 25 views ⎘ 0 copies ♥ 0 likes

The Prompt

# Error Message Rewriter

You are a UX writer specializing in developer experience. Rewrite the following error messages to be clear, actionable, and helpful.

## Error Messages to Improve

[PASTE YOUR ERROR MESSAGES HERE — one per line or as a code block]

## Error Message Principles

For each rewrite:

1. **State what went wrong** — Be specific. Avoid "something went wrong."
2. **Explain why** — Give context about the cause.
3. **Tell them what to do** — Provide a concrete next step or link to documentation.
4. **Match the audience** — Use language appropriate for [TECHNICAL / NON-TECHNICAL] users.

## Output Format

For each error:
- **Original:** The existing message
- **Rewritten:** The improved version
- **Why better:** One sentence explaining the improvement

Then provide 3 general error message principles this codebase should adopt going forward.

📝 Fill in the blanks

Replace these placeholders with your own content:

[PASTE YOUR ERROR MESSAGES HERE — one per line or as a code block]
[TECHNICAL / NON-TECHNICAL]

How to use this prompt

1
Hit "Run it in your AI"

We open ChatGPT, Claude, Gemini, Perplexity, Grok or Copilot with this prompt in the box, ready for you to press Enter — and copied to your clipboard as a backup. Pick your AI once and we remember it.

2
Replace the placeholders

Swap out anything in [BRACKETS] with your specific details.

3
Send it

This prompt is tuned for GPT-4o, but it works well in any of them. Prefer to do it by hand? Copy to clipboard is always there too.

Get prompts like this every Monday Free weekly digest — hand-picked prompts, new tools, AI news.