Merge pull request #5313 from GogoVega/fix-5263

Fix `RED.comms.subscribe` callback on error
This commit is contained in:
Nick O'Leary
2025-10-16 16:26:36 +01:00
committed by GitHub

View File

@@ -120,8 +120,8 @@ RED.comms = (function() {
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)
console.warn('Uncaught error from RED.comms.subscribe: ' + error.toString())
console.warn(error)
}
}
}