mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
MeshCMD route error handling.
This commit is contained in:
parent
8eaa1ee4a9
commit
66842d53c9
3 changed files with 4 additions and 17 deletions
|
@ -2050,6 +2050,7 @@ function startRouter() {
|
|||
settings.websocket = http.request(options);
|
||||
settings.websocket.upgrade = OnServerWebSocket;
|
||||
settings.websocket.on('error', function (ex) { console.log("Unable to connect to server: " + JSON.stringify(ex)); process.exit(1); return; });
|
||||
settings.websocket.on('response', function (rsp) { console.log("Unable to connect to server: " + rsp.statusMessage + " (" + rsp.statusCode + ")"); process.exit(1); return; });
|
||||
settings.websocket.end();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue