# Fix an error you don’t understand

> The AI patches the line the error names, and a new error appears somewhere else.

Web page: https://buildladder.com/resources/prompts/understand-error

What you get: The error explained in plain words, its real cause found, and a fix proven by reproducing it first.

Paste it into: Your AI tool, in your project

## Prompt to copy

```text
I'm getting this error: [paste the full error and what you did just before it].

Don't change anything yet. First explain in plain words what the error means. Then find the real cause: reproduce it, read the code around it, and trace back to where the bad value or state first appears. That place is often not the line the error names.

Tell me the cause in one sentence and how confident you are. Then make the smallest fix at the cause, not a check that hides the symptom. Repeat the original steps to show it's gone, and tell me whether the same mistake exists anywhere else in the project.
```
