Revert type conversion at error handling
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 29 Aug 2021 14:53:26 +0000 (16:53 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 29 Aug 2021 14:53:26 +0000 (16:53 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/worker/abstract-worker.ts

index e97c03473c2dc04da13d6507b40fc750ca72d8a8..60b5108273858ee1d761386edddd5e08be511dba 100644 (file)
@@ -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
   }
 
   /**