diff --git a/storage/mysql/68-mysql.js b/storage/mysql/68-mysql.js index 0698e8d9..1bfcdfec 100644 --- a/storage/mysql/68-mysql.js +++ b/storage/mysql/68-mysql.js @@ -142,7 +142,7 @@ module.exports = function(RED) { conn.query(msg.topic, bind, function (err, rows) { conn.release() if (err) { - msg.payload = rows; + msg.error = err; send(msg); status = { fill: "red", shape: "ring", text: RED._("mysql.status.error") + ": " + err.code }; node.status(status);