mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Merge pull request #4181 from node-red/4122-exit-codes
Ensure non-zero exit codes for errors
This commit is contained in:
commit
1a149592d6
4
packages/node_modules/node-red/red.js
vendored
4
packages/node_modules/node-red/red.js
vendored
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user