# Reading Errors, and \`-ErrorAction\`

PowerShell's red text names the command that failed, what went wrong and, in a script, the file and line; some errors stop a command and some let it carry on, -ErrorAction decides what happens next, and $Error keeps a list of them.

![Cheat sheet for the lesson Reading Errors, and \`-ErrorAction\`: PowerShell's red text names the command that failed, what went wrong and, in a script, the file and line; some errors stop a command and some let it carry on, -ErrorAction decides what happens next, and $Error keeps a list of them.](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/f7ded00b4a07451486c0fa49b367e6d7.webp)

- Category: PowerShell
- Level: Apprentice
- Tags: erroraction, error-records, non-terminating-error, powershell, terminating-error
- Updated: November 10, 2026

Source: https://www.ask-codey.com/cheat-sheets/powershell-errors-cheat-sheet
