mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
Merge 8d7efe683f9df9a769f0a5efb93707b15afb71a4 into cc186ef14e5faf39a2b37d7fa8460349ee56c753
This commit is contained in:
commit
38e26852c7
@ -76,7 +76,7 @@
|
|||||||
name: {value:""}
|
name: {value:""}
|
||||||
},
|
},
|
||||||
inputs:1,
|
inputs:1,
|
||||||
outputs:1,
|
outputs:2,
|
||||||
icon: "db.png",
|
icon: "db.png",
|
||||||
label: function() {
|
label: function() {
|
||||||
var levelNode = RED.nodes.node(this.mydb);
|
var levelNode = RED.nodes.node(this.mydb);
|
||||||
|
@ -145,6 +145,7 @@ module.exports = function(RED) {
|
|||||||
status = { fill: "red", shape: "ring", text: RED._("mysql.status.error") + ": " + err.code };
|
status = { fill: "red", shape: "ring", text: RED._("mysql.status.error") + ": " + err.code };
|
||||||
node.status(status);
|
node.status(status);
|
||||||
node.error(err, msg);
|
node.error(err, msg);
|
||||||
|
send([null, { query: msg.topic, payload: 'ERROR', error: err }]);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
msg.payload = rows;
|
msg.payload = rows;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user