Get your API key

Lesson 1 of 5

Read an error message

The four parts of every error, which line of a stack trace matters, and why Python reads bottom-up.

8 min Free
One step at a time, like flipping pages.

By the end of this lesson you will read any error message, find the one line that matters, and hand the AI a clue instead of a panic.

You need: nothing installed; a project that shows an error helps · Time: 8 minutes

  1. A red wall of text looks scary. It is actually the most helpful thing your computer ever says to you: what went wrong and where.

    You will meet errors in three places:

    • The terminal where your app runs (for example the window where npm run dev is running).
    • The browser Console, the error list inside Chrome's developer tools (next lesson).
    • The build log on your hosting site when you go live (lesson 5).

    In When it breaks you learned to paste the exact error into a bug report. This lesson teaches you to read it first, so you can point the AI at the right line and spot when its fix misses.

    Why?

    An error you can read turns "it's broken" into "line 2 of stock.js gets nothing where it expected a list". The AI fixes the second one in one try.