From 5fe8f83bc58eb9a06acd67ad2488467aaf8cac17 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Thu, 17 Dec 2015 17:15:43 +0000 Subject: [PATCH] Let nam node actual create error event MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (rather than just warn…) --- social/nma/57-nma.js | 6 ++++-- social/nma/package.json | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/social/nma/57-nma.js b/social/nma/57-nma.js index 70a3928b..f57aab1b 100644 --- a/social/nma/57-nma.js +++ b/social/nma/57-nma.js @@ -30,7 +30,9 @@ module.exports = function(RED) { if (typeof(msg.payload) === 'object') { msg.payload = JSON.stringify(msg.payload); } - else { msg.payload = msg.payload.toString(); } + else { + msg.payload = msg.payload.toString(); + } if (node.pushkey) { nma({ "apikey": node.pushkey, @@ -40,7 +42,7 @@ module.exports = function(RED) { "priority": 0 }, function (error) { if (error) { - node.warn("NMA error: " + error); + node.error("NMA error: " + error,msg); } }); } diff --git a/social/nma/package.json b/social/nma/package.json index ffbae144..67dac15b 100644 --- a/social/nma/package.json +++ b/social/nma/package.json @@ -1,6 +1,6 @@ { "name" : "node-red-node-nma", - "version" : "0.0.6", + "version" : "0.0.7", "description" : "A Node-RED node to send alerts via Notify-My-Android", "dependencies" : { "nma" : "0.2.2"