Skip to content
This repository was archived by the owner on Sep 2, 2021. It is now read-only.

Commit d253a5f

Browse files
committed
Merge pull request #432 from adobe/zaggino/message-fix
show error stack in console on uncaught exceptions
2 parents 9fb9abd + 5f09ffd commit d253a5f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

appshell/node-core/Launcher.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ maxerr: 50, node: true */
7777
*/
7878
function uncaughtExceptionHandler() {
7979
var args = Array.prototype.slice.call(arguments, 0);
80+
args = args.map(function (arg) {
81+
return arg instanceof Error ? arg.stack : arg;
82+
});
8083
args.unshift("[Launcher] uncaught exception at top level, exiting.");
8184
Logger.error.apply(null, args);
8285
exit();

0 commit comments

Comments
 (0)