From: Jérôme Benoit Date: Tue, 30 May 2023 21:14:11 +0000 (+0200) Subject: refactor: use simple quote in error string X-Git-Tag: v2.5.0~8 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=ace229a1b5029d3acaeeb4e8abdab415de5318f1;p=poolifier.git refactor: use simple quote in error string Signed-off-by: Jérôme Benoit --- diff --git a/src/worker/abstract-worker.ts b/src/worker/abstract-worker.ts index 176a5893..8a38b4e5 100644 --- a/src/worker/abstract-worker.ts +++ b/src/worker/abstract-worker.ts @@ -266,7 +266,7 @@ export abstract class AbstractWorker< name = name ?? DEFAULT_FUNCTION_NAME const fn = this.taskFunctions.get(name) if (fn == null) { - throw new Error(`Task function "${name}" not found`) + throw new Error(`Task function '${name}' not found`) } return fn }