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:
parent
b9701db578
commit
1860182420
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user