Merge 8d7efe683f9df9a769f0a5efb93707b15afb71a4 into cc186ef14e5faf39a2b37d7fa8460349ee56c753

This commit is contained in:
jonbdk 2025-02-10 20:25:57 -03:00 committed by GitHub
commit 38e26852c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -76,7 +76,7 @@
name: {value:""}
},
inputs:1,
outputs:1,
outputs:2,
icon: "db.png",
label: function() {
var levelNode = RED.nodes.node(this.mydb);

View File

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