When prelogin fails, print QNetworkReply::NetworkError code to logs as well to aid debugging.

This commit is contained in:
Joseph Bane 2020-03-13 12:29:44 -04:00
parent bdad3ffe4d
commit cf32e44366

View File

@ -74,8 +74,9 @@ void GPClient::on_connectButton_clicked()
void GPClient::preloginResultFinished() void GPClient::preloginResultFinished()
{ {
if (reply->error()) { QNetworkReply::NetworkError err = reply->error();
qWarning() << "Prelogin request error"; if (err) {
qWarning() << "Prelogin request error: " << err;
emit connectFailed(); emit connectFailed();
return; return;
} }