mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Add on error method to exec node... (should have been there before :-)
This commit is contained in:
parent
4532cadb14
commit
35965e55b5
@ -55,6 +55,9 @@ module.exports = function(RED) {
|
|||||||
node.status({});
|
node.status({});
|
||||||
node.send([null,null,msg]);
|
node.send([null,null,msg]);
|
||||||
});
|
});
|
||||||
|
ex.on('error', function (code) {
|
||||||
|
node.warn(code);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
else { node.error("Spawn command must be just the command - no spaces or extra parameters"); }
|
else { node.error("Spawn command must be just the command - no spaces or extra parameters"); }
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user