1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Ensure non-zero exit codes for errors

This commit is contained in:
Nick O'Leary 2023-05-22 15:11:57 +01:00
parent b904c23e4d
commit e6c454bba5
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -148,7 +148,7 @@ try {
} else { } else {
console.log(err); console.log(err);
} }
process.exit(); process.exit(1);
} }
if (parsedArgs.define) { if (parsedArgs.define) {
@ -182,7 +182,7 @@ if (parsedArgs.define) {
} }
} catch (e) { } catch (e) {
console.log("Error processing -D option: "+e.message); console.log("Error processing -D option: "+e.message);
process.exit(); process.exit(1);
} }
} }