Skip to content

Commit 9068bf0

Browse files
Alan Agiuskyliau
authored andcommitted
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.
1 parent a832b9a commit 9068bf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/devkit-admin

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ try {
6868
.then(() => require(scriptPath).default(args, logger, cwd))
6969
.then(exitCode => process.exit(exitCode || 0))
7070
.catch(err => {
71-
logger.fatal(err.stack);
71+
logger.fatal(err && err.stack);
7272
process.exit(99);
7373
});
7474
} catch (err) {

0 commit comments

Comments
 (0)