Merge pull request #5313 from GogoVega/fix-5263

Fix `RED.comms.subscribe` callback on error
sync-dev
Nick O'Leary 2025-10-16 16:26:36 +01:00 committed by GitHub
commit 32831cb3b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

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)
}
}
}