mirror of https://github.com/node-red/node-red.git
Ensure non-zero exit codes for errors
This commit is contained in:
parent
b904c23e4d
commit
e6c454bba5
|
@ -148,7 +148,7 @@ try {
|
|||
} else {
|
||||
console.log(err);
|
||||
}
|
||||
process.exit();
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
if (parsedArgs.define) {
|
||||
|
@ -182,7 +182,7 @@ if (parsedArgs.define) {
|
|||
}
|
||||
} catch (e) {
|
||||
console.log("Error processing -D option: "+e.message);
|
||||
process.exit();
|
||||
process.exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue