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"