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

View File

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