Skip to content

Commit

Permalink
Add a better update error message
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianFeldmann committed Feb 2, 2020
1 parent 8d443d0 commit 9c0c5a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions YUViewLib/src/handler/updateHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -581,9 +581,9 @@ void updateHandler::downloadFinished(QNetworkReply *reply)
bool downloadEncrypted = reply->attribute(QNetworkRequest::ConnectionEncryptedAttribute).toBool();
DEBUG_UPDATE("updateHandler::downloadFinished %s %s %d", error ? "error" : "", downloadEncrypted ? "encrypted" : "not encrypted", reply->error());
if (error)
return abortUpdate(QString("An error occured while downloading YUView. Error code %1.").arg(err));
return abortUpdate(QString("An error occured while downloading file %1. Error code %2 (%3).").arg(currentDownloadFile.first).arg(err).arg(reply->errorString()));
else if (!downloadEncrypted)
return abortUpdate("YUView could not be downloaded through a secure connection.");
return abortUpdate(QString("File %1 could not be downloaded through a secure connection.").arg(currentDownloadFile.first));
else
{
// A file was downloaded successfully. Get the data.
Expand Down

0 comments on commit 9c0c5a4

Please sign in to comment.