From 9c0c5a4bd778e45a7829d1be9a8aa0f9b9b0000e Mon Sep 17 00:00:00 2001 From: Christian Feldmann Date: Sun, 2 Feb 2020 19:01:50 +0100 Subject: [PATCH] Add a better update error message --- YUViewLib/src/handler/updateHandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/YUViewLib/src/handler/updateHandler.cpp b/YUViewLib/src/handler/updateHandler.cpp index e085922e1..5c7b9c51a 100644 --- a/YUViewLib/src/handler/updateHandler.cpp +++ b/YUViewLib/src/handler/updateHandler.cpp @@ -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.