build: silence warning
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 31 May 2024 17:04:26 +0000 (19:04 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 31 May 2024 17:04:26 +0000 (19:04 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
src/worker/abstract-worker.ts

index 7803ce2eb836b003159760ce408f97fb3acedd50..ac6e66795753809c9f84442ae891b98f78f98aa6 100644 (file)
@@ -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,