We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f32c781 commit cf3a250Copy full SHA for cf3a250
templates/swagger/node.js.mustache
@@ -69,7 +69,7 @@ module.exports = function (RED) {
69
parameters.{{&camelCaseName}} = msg.payload;
70
} else {
71
node.error('Unsupported type: \'' + (typeof msg.payload) + '\', '
72
- + 'msg.payload must be JSON object or buffer.');
+ + 'msg.payload must be JSON object or buffer.', msg);
73
errorFlag = true;
74
}
75
{{/isBodyParam}}
@@ -93,7 +93,7 @@ module.exports = function (RED) {
93
node.send(msg);
94
node.status({});
95
}).catch(function (error) {
96
- node.error(error);
+ node.error(error, msg);
97
node.status({ fill: "red", shape: "ring", text: "node-red:common.status.error" });
98
});
99
0 commit comments