From a00bf3e1e17bab4338889628809a49c7b930866c Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Mon, 9 Sep 2013 10:49:28 +0800 Subject: [PATCH] Print stack when got error on startup. --- browser/default_app/main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/browser/default_app/main.js b/browser/default_app/main.js index fdf33882e74..862b59d58fe 100644 --- a/browser/default_app/main.js +++ b/browser/default_app/main.js @@ -9,6 +9,7 @@ if (argv._.length > 0) { require(path.resolve(argv._[0])); } catch(e) { if (e.code == 'MODULE_NOT_FOUND') { + console.error(e.stack); console.error('Specified app is invalid'); process.exit(1); } else {