1
0
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:
Dave C-J 2014-07-08 08:48:46 +01:00
parent 4532cadb14
commit 35965e55b5

View File

@ -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"); }
} }