mirror of https://github.com/node-red/node-red.git
parent
9ad329e5a1
commit
d35b31cbef
|
|
@ -116,7 +116,13 @@ RED.comms = (function() {
|
|||
var subscribers = subscriptions[t];
|
||||
if (subscribers) {
|
||||
for (var i=0;i<subscribers.length;i++) {
|
||||
subscribers[i](msg.topic,msg.data);
|
||||
try {
|
||||
subscribers[i](msg.topic,msg.data);
|
||||
} catch (error) {
|
||||
// need to decide what to do with this uncaught error
|
||||
console.warn('Uncaught error from RED.comms.subscribe: ' + err.toString())
|
||||
console.warn(err)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue