X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fworker%2Fabstract-worker.ts;h=6e17c9ed92f53a3612d214f782d38019875ed46c;hb=e5b3047de23abe2d273ad39335230b87a68a0fe5;hp=242c46982236357626ae50fae5f3a33d7c3f04eb;hpb=bb8907c8d1a6fc3f2d03c3d47406cdde29693fea;p=poolifier.git diff --git a/src/worker/abstract-worker.ts b/src/worker/abstract-worker.ts index 242c4698..6e17c9ed 100644 --- a/src/worker/abstract-worker.ts +++ b/src/worker/abstract-worker.ts @@ -37,7 +37,7 @@ export abstract class AbstractWorker< Response = unknown > extends AsyncResource { /** - * Worker Id. + * Worker id. */ protected abstract id: number /** @@ -206,7 +206,7 @@ export abstract class AbstractWorker< * Handles an error and convert it to a string so it can be sent back to the main worker. * * @param e - The error raised by the worker. - * @returns Message of the error. + * @returns The error message. */ protected handleError (e: Error | string): string { return e as string