From 3b3f450c26587084a9c55e03accc4f78103f24e3 Mon Sep 17 00:00:00 2001 From: Andrei Rusu Date: Thu, 3 Nov 2022 17:53:51 +0100 Subject: [PATCH] added an improvement to show the correct stack trace info for some errors --- lib/testsuite/context.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/testsuite/context.js b/lib/testsuite/context.js index c53f87babf..7db19a825a 100644 --- a/lib/testsuite/context.js +++ b/lib/testsuite/context.js @@ -234,6 +234,7 @@ class Context extends EventEmitter { } catch (err) { const error = new Error(`Error while trying to load ${this.modulePath}`); error.detailedErr = err.message; + error.stack = err.stack; throw error; }