From d1c10837d19cc69a4e897983ec69df4658639426 Mon Sep 17 00:00:00 2001 From: Gabriel Craciunescu Date: Mon, 6 Nov 2017 19:46:26 +0100 Subject: [PATCH] [netinstall]: some more debug - change the debug output when the errors occurs so we have a clue what may go wrong --- src/modules/netinstall/NetInstallPage.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/modules/netinstall/NetInstallPage.cpp b/src/modules/netinstall/NetInstallPage.cpp index 28c836a79..a8e37aa0c 100644 --- a/src/modules/netinstall/NetInstallPage.cpp +++ b/src/modules/netinstall/NetInstallPage.cpp @@ -88,7 +88,9 @@ NetInstallPage::dataIsHere( QNetworkReply* reply ) // even if the reply is corrupt or missing. if ( reply->error() != QNetworkReply::NoError ) { - cDebug() << reply->errorString(); + cDebug() << "WARNING: unable to fetch netinstall package lists."; + cDebug() << " ..Netinstall reply error: " << reply->error(); + cDebug() << " ..Request for url: " << reply->url().toString() << " failed with: " << reply->errorString(); ui->netinst_status->setText( tr( "Network Installation. (Disabled: Unable to fetch package lists, check your network connection)" ) ); emit checkReady( !m_required ); return; @@ -96,7 +98,9 @@ NetInstallPage::dataIsHere( QNetworkReply* reply ) if ( !readGroups( reply->readAll() ) ) { - cDebug() << "Netinstall groups data was received, but invalid."; + cDebug() << "WARNING: netinstall groups data was received, but invalid."; + cDebug() << " ..Url: " << reply->url().toString(); + cDebug() << " ..Headers: " << reply->rawHeaderList(); ui->netinst_status->setText( tr( "Network Installation. (Disabled: Received invalid groups data)" ) ); reply->deleteLater(); emit checkReady( !m_required );