mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
Update 68-mysql.js
Send msg to secondary output in case of error
This commit is contained in:
parent
97688b4cda
commit
8d7efe683f
@ -145,6 +145,7 @@ module.exports = function(RED) {
|
||||
status = { fill: "red", shape: "ring", text: RED._("mysql.status.error") + ": " + err.code };
|
||||
node.status(status);
|
||||
node.error(err, msg);
|
||||
send([null, { query: msg.topic, payload: 'ERROR', error: err }]);
|
||||
}
|
||||
else {
|
||||
msg.payload = rows;
|
||||
|
Loading…
x
Reference in New Issue
Block a user