Error handling
This commit is contained in:
1 parent
304ce8fd50
commit
f3faa93a91
2 files changed
+10
-7
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user