From b8a235697f1957e8b492035e5b746cbb89d11ebf Mon Sep 17 00:00:00 2001 From: lin onetwo Date: Mon, 31 Jul 2023 19:19:10 +0800 Subject: [PATCH] Improve boot kernel error reporting to include original error message (#7645) --- boot/boot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot/boot.js b/boot/boot.js index 3547ee880..06d4628c0 100644 --- a/boot/boot.js +++ b/boot/boot.js @@ -925,7 +925,7 @@ $tw.modules.execute = function(moduleName,moduleRoot) { } } else { // line number should be included in e.stack for runtime errors - $tw.utils.error("Error executing boot module " + name + ": " + JSON.stringify(e) + "\n\n" + e.stack); + $tw.utils.error("Error executing boot module " + name + ": " + String(e) + "\n\n" + e.stack); } } }