StoicBuilder

HandbookIV the PraetoriumSharing the full error

IVthe Praetorium, Direct the agent

Sharing the full error

1 min readUpdated 28 November

In plain words

The agent needs the exact error text, where it appeared, and what you did right before it; "it's broken" gives it nothing to work with.

Where you see it

The red text in your browser's console (right-click, Inspect, Console), the terminal where your app runs, or the error box Lovable shows with a "Try to fix" button. The message names the problem; the lines under it say where it happened.

Your promptagent
Before: login is broken again After: After I click "Log in", /dashboard is blank.Console: TypeError: Cannot read properties ofundefined (reading 'id') at Dashboard (Dashboard.tsx:14)It started after we added the profile page.
The exact text, the file and line, and what changed: three clues instead of none.

What goes wrong

  1. Paraphrasing the error

    "Some auth error" could be ten different problems. The exact wording often points straight at the cause, so copy it rather than describe it.

    it says something about permissions
  2. Cutting off the lines underneath

    The lines below the message show which file and line it came from. Leave them out and the agent has to guess where to look.

  3. Pasting secrets along with the error

    Error output can include API keys, tokens or database passwords. Replace them with XXXX before you paste.

What to tell your agent

Copy this into Lovable, Bolt, Cursor or any agent
Here is the full error and the steps that trigger it. Explain what it means in one sentence before changing any code, then fix the cause, not the symptom.

Quick check

Sign in to earn +10 XP for it

Your app crashes on the Orders page. Which message gives the agent the most to work with?

Got a prompt that touches sharing the full error?

Paste it. You get a better prompt first, then the cards that explain it.

Check your own prompt

Free, no sign-up.