You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 6, 2025. It is now read-only.
Currently, we only look for swallowed errors in synchronous operations within catch blocks.
We need to extend the no-swallowed-error-cause rule to handle cases where a new error is being thrown in catch handlers of promises.
Here's an example:
newPromise((resolve,reject)=>{thrownewError("Failing because...");}).catch((error)=>{// `error` is getting swallowedthrownewError("Something went wrong");});