Skip to content

Commit

Permalink
build: terminate process with non zero error code when build fails
Browse files Browse the repository at this point in the history
At the moment, error can be undefined sometimes which is causing the process not to be terminated with a non zero error code.
  • Loading branch information
Alan Agius authored and Keen Yee Liau committed Jan 11, 2019
1 parent f7c6719 commit 95c7267
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/devkit-admin
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ try {
.then(() => require(scriptPath).default(args, logger, cwd))
.then(exitCode => process.exit(exitCode || 0))
.catch(err => {
logger.fatal(err.stack);
logger.fatal(err && err.stack);
process.exit(99);
});
} catch (err) {
Expand Down

0 comments on commit 95c7267

Please sign in to comment.