From 35965e55b589f3bea84f5fc397d75d5794ee842d Mon Sep 17 00:00:00 2001 From: Dave C-J Date: Tue, 8 Jul 2014 08:48:46 +0100 Subject: [PATCH] Add on error method to exec node... (should have been there before :-) --- nodes/core/core/75-exec.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nodes/core/core/75-exec.js b/nodes/core/core/75-exec.js index a12baf40e..c2e75a1cf 100644 --- a/nodes/core/core/75-exec.js +++ b/nodes/core/core/75-exec.js @@ -55,6 +55,9 @@ module.exports = function(RED) { node.status({}); 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"); } }