Skip to content

Commit b9701db

Browse files
authored
I need error msg
I still need the msg.payload when there is an error, not only when everything is going well.
1 parent 9bae313 commit b9701db

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

storage/mysql/68-mysql.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ module.exports = function(RED) {
142142
conn.query(msg.topic, bind, function (err, rows) {
143143
conn.release()
144144
if (err) {
145+
msg.payload = rows;
146+
send(msg);
145147
status = { fill: "red", shape: "ring", text: RED._("mysql.status.error") + ": " + err.code };
146148
node.status(status);
147149
node.error(err, msg);

0 commit comments

Comments
 (0)