1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00

Pass message to error handler on MQlight send fail

This commit is contained in:
Nick O'Leary 2015-04-17 21:14:20 +01:00
parent 2c242c76c7
commit 889b62cf70
2 changed files with 2 additions and 2 deletions

View File

@ -129,7 +129,7 @@ module.exports = function(RED) {
} }
sendClient.send(node.topic, msg.payload, function(err) { sendClient.send(node.topic, msg.payload, function(err) {
if (err) { if (err) {
node.error(err); node.error(err,msg);
} }
}); });
}); });

View File

@ -1,6 +1,6 @@
{ {
"name" : "node-red-node-mqlight", "name" : "node-red-node-mqlight",
"version" : "0.0.4", "version" : "0.0.5",
"description" : "A Node-RED node to send and receive message from IBM MQ Light", "description" : "A Node-RED node to send and receive message from IBM MQ Light",
"dependencies" : { "dependencies" : {
"mqlight" : "1.0.x" "mqlight" : "1.0.x"