X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fworker%2Fthread-worker.ts;h=d5ce3a2f130da3efbe81f0aa0e3b3e7394033822;hb=cf131ea71d0e7b70e36cb8ba531b2ed49cc15cdd;hp=ec6b6a0aa65ac60adb1f089a4923894798953525;hpb=0a80186676a91b336bef90ba44d937bd85717576;p=poolifier.git diff --git a/src/worker/thread-worker.ts b/src/worker/thread-worker.ts index ec6b6a0a..d5ce3a2f 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, @@ -90,8 +90,11 @@ export class ThreadWorker< this.port.postMessage({ ...message, workerId: this.id }) } - /** @inheritDoc */ - protected handleError (e: Error | string): string { - return e as string + /** + * @inheritDoc + * @override + */ + protected handleError (error: Error | string): string { + return error as string } }