Print stack when got error on startup.
This commit is contained in:
parent
b9d994dca2
commit
a00bf3e1e1
1 changed files with 1 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue