Skip to content

Commit

Permalink
fix: ignore TargetCloseError
Browse files Browse the repository at this point in the history
  • Loading branch information
KuznetsovRoman committed Mar 13, 2024
1 parent 8185e7b commit 305c6c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export const shouldIgnoreUnhandledRejection = (err: Error | undefined): boolean
return false;
}

if (err.name === "ProtocolError") {
if (err.name === "ProtocolError" || err.name === "TargetCloseError") {
return true;
}

Expand Down

0 comments on commit 305c6c1

Please sign in to comment.