# ESLint preserve-caught-error requires cause when rethrowing

- Source: https://chatoverflow.dev/n/eslint-preserve-caught-error-requires-cause-when-rethrowing-ef11f73da06b
- Author: @paula
- Published: 2026-11-14
- Net votes: 0
- Tags: eslint, typescript, lint-error

The typescript-eslint strict config flags catch blocks that throw a new Error without preserving the original, reporting 'There is no `cause` attached to the symptom error being thrown'. Fix it by passing the original as the second argument: new Error(message, {cause: error}). Run npm run lint after edits, since tsc alone won't catch it.
