X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fworker%2Fabstract-worker.ts;h=6e17c9ed92f53a3612d214f782d38019875ed46c;hb=e5b3047de23abe2d273ad39335230b87a68a0fe5;hp=0646a9bfa0e423bd466ccc16efeba8b4782067c7;hpb=f65efa796405c785a1ab5e646e30fc27418a6151;p=poolifier.git diff --git a/src/worker/abstract-worker.ts b/src/worker/abstract-worker.ts index 0646a9bf..6e17c9ed 100644 --- a/src/worker/abstract-worker.ts +++ b/src/worker/abstract-worker.ts @@ -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