Skip to content

Commit

Permalink
Updater|Fixed: Log a message about a failed network request
Browse files Browse the repository at this point in the history
Acknowledge that the Updater couldn't access the network.
  • Loading branch information
skyjake committed Jun 9, 2012
1 parent 4e04e13 commit bf21986
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion doomsday/engine/portable/src/updater.cpp
Expand Up @@ -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;

Expand Down Expand Up @@ -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());
Expand Down

0 comments on commit bf21986

Please sign in to comment.