Improved error logging
This commit is contained in:
2
hosts.js
2
hosts.js
@@ -45,6 +45,7 @@ async function isConnected(hostID) {
|
||||
}
|
||||
catch (error) {
|
||||
Log(`[${shared.now()}] ${error}`);
|
||||
Log(`[${shared.now()}] Errore nella verifica dello stato per l'host ${hostID}`);
|
||||
process.exit(3);
|
||||
}
|
||||
}
|
||||
@@ -164,6 +165,7 @@ async function initHostList() {
|
||||
});
|
||||
} catch (error) {
|
||||
Log(`[${shared.now()}] ${error}`);
|
||||
Log(`[${shared.now()}] Errore nel tentativo di reperire tutti i peer`);
|
||||
process.exit(3);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user