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]));
|
require(path.resolve(argv._[0]));
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
if (e.code == 'MODULE_NOT_FOUND') {
|
if (e.code == 'MODULE_NOT_FOUND') {
|
||||||
|
console.error(e.stack);
|
||||||
console.error('Specified app is invalid');
|
console.error('Specified app is invalid');
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue