From cf32e443668fb2c734414290b8fb035742268743 Mon Sep 17 00:00:00 2001 From: Joseph Bane Date: Fri, 13 Mar 2020 12:29:44 -0400 Subject: [PATCH] When prelogin fails, print QNetworkReply::NetworkError code to logs as well to aid debugging. --- GPClient/gpclient.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/GPClient/gpclient.cpp b/GPClient/gpclient.cpp index 93cdfda..3f67893 100644 --- a/GPClient/gpclient.cpp +++ b/GPClient/gpclient.cpp @@ -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; }