1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-29 21:09:56 +00:00

Improve boot kernel error reporting to include original error message (#7645)

This commit is contained in:
lin onetwo 2023-07-31 19:19:10 +08:00 committed by GitHub
parent ed82536a55
commit b8a235697f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -925,7 +925,7 @@ $tw.modules.execute = function(moduleName,moduleRoot) {
} }
} else { } else {
// line number should be included in e.stack for runtime errors // 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);
} }
} }
} }