Files
zeekayandHanzo Dev 87f33903e2 fix(lint): keep the caught error as the cause of the one rethrown
ESLint 10's recommended set added preserve-caught-error: a catch block that
throws a new error has to pass the caught one as its cause. Five places
caught an error and threw a plainer one in its place — fetching the OIDC
configuration, sending a confirmation email, triggering a webhook,
validating a Zapier API token, rendering an email — and each failed the
lint.

Each now passes `{ cause: err }`. The thrown error keeps its message and
type; what it gains is the original, which Node prints after it as
`[cause]`. render-email-with-i18n.tsx also loses its stale ban-types
disable comment, as the five files in the commit before did.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-19 05:02:03 -07:00
..
2025-06-10 11:49:52 +10:00