From: Jérôme Benoit Date: Sun, 29 Aug 2021 14:53:26 +0000 (+0200) Subject: Revert type conversion at error handling X-Git-Tag: v2.2.0~27 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=4a34343d15e11354a7313604a223ee4d7fb02c53;p=poolifier.git Revert type conversion at error handling Signed-off-by: Jérôme Benoit --- diff --git a/src/worker/abstract-worker.ts b/src/worker/abstract-worker.ts index e97c0347..60b51082 100644 --- a/src/worker/abstract-worker.ts +++ b/src/worker/abstract-worker.ts @@ -146,7 +146,7 @@ export abstract class AbstractWorker< * @returns Message of the error. */ protected handleError (e: Error | string): string { - return e.toString() + return e as string } /**