More frendly meshctrol.js unable to connect error, #3807

This commit is contained in:
Ylian Saint-Hilaire 2022-03-28 11:53:11 -07:00
parent c30196dd03
commit 589ae4a285

View File

@ -1699,7 +1699,7 @@ function serverConnect() {
ws.on('error', function (err) {
if (err.code == 'ENOTFOUND') { console.log('Unable to resolve ' + url); }
else if (err.code == 'ECONNREFUSED') { console.log('Unable to connect to ' + url); }
else { console.log(err); }
else { console.log('Unable to connect to ' + url); }
process.exit();
});