From: Jérôme Benoit Date: Tue, 15 Aug 2023 14:05:24 +0000 (+0200) Subject: fix: fix error type at public method arguments handling X-Git-Tag: v2.6.26~5 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=f58b60b9e2433207e84a464b71aea4f17eee34ba;p=poolifier.git fix: fix error type at public method arguments handling Signed-off-by: Jérôme Benoit --- 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(