Fixed error handling

This commit is contained in:
La Programmatrice Verde
2025-08-20 19:48:38 +02:00
parent 97ebcd4527
commit 1989c10d63
3 changed files with 5 additions and 9 deletions

View File

@@ -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() {