Print stack when got error on startup.

This commit is contained in:
Cheng Zhao 2013-09-09 10:49:28 +08:00
parent b9d994dca2
commit a00bf3e1e1

View file

@ -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 {