From: Jérôme Benoit Date: Fri, 31 May 2024 17:04:26 +0000 (+0200) Subject: build: silence warning X-Git-Tag: v4.0.14~25 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=b04efa0b62445fdf7e5237c0c20426f27edd6a1f;p=poolifier.git build: silence warning Signed-off-by: Jérôme Benoit --- diff --git a/src/worker/abstract-worker.ts b/src/worker/abstract-worker.ts index 7803ce2e..ac6e6679 100644 --- a/src/worker/abstract-worker.ts +++ b/src/worker/abstract-worker.ts @@ -555,7 +555,7 @@ export abstract class AbstractWorker< workerError: { // eslint-disable-next-line @typescript-eslint/no-non-null-assertion name: name!, - message: this.handleError(error), + message: this.handleError(error as Error | string), data, }, taskId,