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
@@ -31,13 +31,13 @@ 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]);
}
let roomId = node.roomId || msg.topic;
if(!roomId) {
node.error("msg.topic is required. Specify in the input or configure the room ID on the node.");
node.error("msg.topic is required. Specify in the input or configure the room ID on the node.", {});
return;
}