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

I fixed it.

I thought that even if there is an error, send a message.
This commit is contained in:
tamasvar 2023-02-02 09:04:18 +01:00
parent b9701db578
commit 1860182420

View File

@ -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);