mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Exit with non-0 rc if admin command fails
This commit is contained in:
parent
f7e7f7ed01
commit
c048b1a25b
@ -56,7 +56,7 @@
|
||||
"mqtt": "2.18.8",
|
||||
"multer": "1.4.2",
|
||||
"mustache": "4.0.1",
|
||||
"node-red-admin": "^0.2.4",
|
||||
"node-red-admin": "^0.2.5",
|
||||
"node-red-node-rbe": "^0.2.9",
|
||||
"node-red-node-sentiment": "^0.1.6",
|
||||
"node-red-node-tail": "^0.1.0",
|
||||
|
2
packages/node_modules/node-red/package.json
vendored
2
packages/node_modules/node-red/package.json
vendored
@ -39,7 +39,7 @@
|
||||
"bcryptjs": "2.4.3",
|
||||
"express": "4.17.1",
|
||||
"fs-extra": "8.1.0",
|
||||
"node-red-admin": "^0.2.4",
|
||||
"node-red-admin": "^0.2.5",
|
||||
"node-red-node-rbe": "^0.2.9",
|
||||
"node-red-node-tail": "^0.1.0",
|
||||
"nopt": "4.0.3",
|
||||
|
4
packages/node_modules/node-red/red.js
vendored
4
packages/node_modules/node-red/red.js
vendored
@ -17,7 +17,9 @@
|
||||
|
||||
if (process.argv[2] === 'admin') {
|
||||
try {
|
||||
require("node-red-admin")(process.argv.slice(3))
|
||||
require("node-red-admin")(process.argv.slice(3)).catch(err => {
|
||||
process.exit(1);
|
||||
})
|
||||
} catch(err) {
|
||||
console.log(err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user