Improved an error message

This commit is contained in:
WolverinDEV 2019-11-23 23:41:51 +01:00
parent 794475ea22
commit 2522e12882

View file

@ -433,7 +433,10 @@ class ConnectionHandler {
this.log.log(log.server.Type.CONNECTION_FAILED, {});
break;
}
log.error(LogCategory.CLIENT, tr("Could not connect to remote host! Error: %o"), data);
if(data)
log.error(LogCategory.CLIENT, tr("Could not connect to remote host! Extra data: %o"), data);
else
log.error(LogCategory.CLIENT, tr("Could not connect to remote host!"), data);
if(native_client) {
createErrorModal(