From bf21986bfc6509dbfac32490178e2915f0538731 Mon Sep 17 00:00:00 2001 From: skyjake Date: Sat, 9 Jun 2012 19:27:10 +0300 Subject: [PATCH] Updater|Fixed: Log a message about a failed network request Acknowledge that the Updater couldn't access the network. --- doomsday/engine/portable/src/updater.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/doomsday/engine/portable/src/updater.cpp b/doomsday/engine/portable/src/updater.cpp index fdee620b38..9bbb7e7494 100644 --- a/doomsday/engine/portable/src/updater.cpp +++ b/doomsday/engine/portable/src/updater.cpp @@ -241,6 +241,12 @@ struct Updater::Instance { reply->deleteLater(); // make sure it gets deleted + if(reply->error() != QNetworkReply::NoError) + { + Con_Message("Network request failed: %s\n", reply->url().toString().toUtf8().constData()); + return; + } + QVariant result = parseJSON(QString::fromUtf8(reply->readAll())); if(!result.isValid()) return; @@ -421,7 +427,7 @@ void Updater::downloadCompleted(int result) { // Autosave the game. - // Check the MD5 hash of the downloaded file. + // Check the signature of the downloaded file. // Everything is ready to begin the installation! d->startInstall(d->download->downloadedFilePath());