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