#111595Reject promises only with Error objects in TypeScript
Description
Part of #111591.
Rejecting a promise with a value that is not an Error loses the stack trace for whoever catches it. Resolve the findings of typescript-eslint/prefer-promise-reject-errors@, then remove its "off" entry from Build/eslint.config.mjs.
Findings with typescript-eslint 8.58.1: 7, in EXT:backend, EXT:core and EXT:install.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Fix this issue
Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch
- Commit message
-
[TASK] Reject promises only with Error objects in TypeScript Resolves: #111595 Releases: main