Merge pull request #2 from havocbane/master

Print QNetworkReply::NetworkError code to logs
This commit is contained in:
Kevin Yue 2020-03-14 12:14:43 +08:00 committed by GitHub
commit 81d4f9836f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;
} }