mirror of
https://github.com/node-red/node-red.git
synced 2025-12-27 15:34:26 +01:00
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user