Skip to content

Commit 95c7267

Browse files
Alan AgiusKeen Yee Liau
Alan Agius
authored and
Keen Yee Liau
committed
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 f7c6719 commit 95c7267

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/devkit-admin

+1-1
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)