feat: add helper to get the worker wait time in worker choice strategies
[poolifier.git] / 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
   }