mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Show errors and statuses of config nodes in the sidebar when no catch nodes are used
This commit is contained in:
parent
5d698d66d0
commit
c1ea3380eb
@ -601,10 +601,9 @@ class Flow {
|
|||||||
// Delegate status to any nodes using this config node
|
// Delegate status to any nodes using this config node
|
||||||
for (let userNode in node.users) {
|
for (let userNode in node.users) {
|
||||||
if (node.users.hasOwnProperty(userNode)) {
|
if (node.users.hasOwnProperty(userNode)) {
|
||||||
node.users[userNode]._flow.handleStatus(node,statusMessage,node.users[userNode],true);
|
handled = node.users[userNode]._flow.handleStatus(node,statusMessage,node.users[userNode],true) || handled;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
handled = true;
|
|
||||||
} else {
|
} else {
|
||||||
this.statusNodes.forEach(function(targetStatusNode) {
|
this.statusNodes.forEach(function(targetStatusNode) {
|
||||||
if (targetStatusNode.scope && targetStatusNode.scope.indexOf(reportingNode.id) === -1) {
|
if (targetStatusNode.scope && targetStatusNode.scope.indexOf(reportingNode.id) === -1) {
|
||||||
@ -662,10 +661,9 @@ class Flow {
|
|||||||
// Delegate status to any nodes using this config node
|
// Delegate status to any nodes using this config node
|
||||||
for (let userNode in node.users) {
|
for (let userNode in node.users) {
|
||||||
if (node.users.hasOwnProperty(userNode)) {
|
if (node.users.hasOwnProperty(userNode)) {
|
||||||
node.users[userNode]._flow.handleError(node,logMessage,msg,node.users[userNode]);
|
handled = node.users[userNode]._flow.handleError(node,logMessage,msg,node.users[userNode]) || handled;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
handled = true;
|
|
||||||
} else {
|
} else {
|
||||||
var handledByUncaught = false;
|
var handledByUncaught = false;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user