Fixed error handling
This commit is contained in:
2
hosts.js
2
hosts.js
@@ -41,12 +41,12 @@ async function isConnected(hostID) {
|
||||
}
|
||||
);
|
||||
Log(`[${shared.now()}] ${hostID} connected: ${response.data.connected}`);
|
||||
return response.data.connected;
|
||||
}
|
||||
catch (error) {
|
||||
Log(`[${shared.now()}] ${error}`);
|
||||
process.exit(3);
|
||||
}
|
||||
return response.data.connected;
|
||||
}
|
||||
|
||||
async function initHostList() {
|
||||
|
||||
Reference in New Issue
Block a user