refactor: use simple quote in error string
authorJérôme Benoit <jerome.benoit@sap.com>
Tue, 30 May 2023 21:14:11 +0000 (23:14 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Tue, 30 May 2023 21:14:11 +0000 (23:14 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/worker/abstract-worker.ts

index 176a5893caeeec7cb9d82095840b97498b3822b0..8a38b4e576464ecb88078540cc8604d7b3ad323f 100644 (file)
@@ -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
   }