X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fworker%2Fthread-worker.ts;h=bfd1c13cdb41775c0c01d031cb0aedf9d364959b;hb=9d96ba4ea0e2e4b06216657cb1641551b59f58ee;hp=ec6b6a0aa65ac60adb1f089a4923894798953525;hpb=79a15c63aeffb999bdd7d20de78fef6e5f29e196;p=poolifier.git diff --git a/src/worker/thread-worker.ts b/src/worker/thread-worker.ts index ec6b6a0a..bfd1c13c 100644 --- a/src/worker/thread-worker.ts +++ b/src/worker/thread-worker.ts @@ -42,7 +42,7 @@ export class ThreadWorker< opts: WorkerOptions = {} ) { super( - 'worker-thread-pool:poolifier', + 'poolifier:thread-worker', isMainThread, parentPort as MessagePort, taskFunctions, @@ -91,7 +91,7 @@ export class ThreadWorker< } /** @inheritDoc */ - protected handleError (e: Error | string): string { - return e as string + protected handleError (error: Error | string): string { + return error as string } }