From 305c6c1610312e025b02f49bf0692e446739fa1f Mon Sep 17 00:00:00 2001 From: Roman Kuznetsov Date: Wed, 13 Mar 2024 23:22:52 +0300 Subject: [PATCH] fix: ignore TargetCloseError --- src/utils/errors.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/errors.ts b/src/utils/errors.ts index 03120e0e4..ebd55bdea 100644 --- a/src/utils/errors.ts +++ b/src/utils/errors.ts @@ -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; }