From f58b60b9e2433207e84a464b71aea4f17eee34ba Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Tue, 15 Aug 2023 16:05:24 +0200 Subject: [PATCH] fix: fix error type at public method arguments handling MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/pools/abstract-pool.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pools/abstract-pool.ts b/src/pools/abstract-pool.ts index 5b2bd150..4c08671e 100644 --- a/src/pools/abstract-pool.ts +++ b/src/pools/abstract-pool.ts @@ -670,7 +670,7 @@ export abstract class AbstractPool< typeof name === 'string' && name.trim().length === 0 ) { - reject(new Error('name argument must not be an empty string')) + reject(new TypeError('name argument must not be an empty string')) } if (name != null && !this.taskFunctions.includes(name)) { reject( -- 2.34.1