Make errors of nodes catchable by a catch node

This commit is contained in:
bvmensvoort
2023-06-11 10:42:38 +02:00
committed by Skylar Sadlier
parent 8a7fba39e8
commit 8ca11f36d8
14 changed files with 44 additions and 44 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ module.exports = function(RED) {
this.server = RED.nodes.getNode(n.server);
if(!this.server) {
node.error('Server must be configured on the node.');
node.error('Server must be configured on the node.', {});
return;
}
@@ -41,7 +41,7 @@ module.exports = function(RED) {
}
if(!node.server.isConnected()) {
node.error("Matrix server connection is currently closed");
node.error("Matrix server connection is currently closed", {});
node.send([null, msg]);
}