Error handling

This commit is contained in:
Luis Fernando Molina committed 2020-08-28 10:50:32 +02:00
1 parent 304ce8fd50
commit f3faa93a91
2 files changed
+10 -7

No files matched your search

+3
View File
@@ -215,6 +215,9 @@ function newEventsServerClient(networkNode) {
let config = JSON.parse(networkNode.config)
host = config.host
port = config.webSocketsPort
/* Check if we really have to stablish the connection. */
if (config.autoConnect === false) {return}
} catch (err) {
networkNode.payload.uiObject.setErrorMessage('Bad configuration. Cannot know the host name or the webSocketsPort.')
return