refactor: cleanup .gitignore
[poolifier.git] / src / worker / thread-worker.ts
index ec6b6a0aa65ac60adb1f089a4923894798953525..bfd1c13cdb41775c0c01d031cb0aedf9d364959b 100644 (file)
@@ -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
   }
 }