mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-15 01:54:04 +08:00
build: terminate process with non zero error code when build fails
At the moment, error can be undefined sometimes which is causing the process not to be terminated with a non zero error code.
This commit is contained in:
parent
f7c6719f73
commit
95c72677a5
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user