QNAM Fix error message
The code path is called for up- and downloads, yet the error message talks about "Error downloading...". Make this "Error transferring..." for a more neutral statement. Change-Id: Ifbca6a95058042b195cdbeec339ef27a231491b2 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
This commit is contained in:
parent
61cefb2f7a
commit
4efa50a5e3
@ -492,7 +492,7 @@ void QHttpThreadDelegate::finishedSlot()
|
||||
if (httpReply->statusCode() >= 400) {
|
||||
// it's an error reply
|
||||
QString msg = QLatin1String(QT_TRANSLATE_NOOP("QNetworkReply",
|
||||
"Error downloading %1 - server replied: %2"));
|
||||
"Error transferring %1 - server replied: %2"));
|
||||
msg = msg.arg(httpRequest.url().toString(), httpReply->reasonPhrase());
|
||||
emit error(statusCodeFromHttp(httpReply->statusCode(), httpRequest.url()), msg);
|
||||
}
|
||||
@ -518,7 +518,7 @@ void QHttpThreadDelegate::synchronousFinishedSlot()
|
||||
if (httpReply->statusCode() >= 400) {
|
||||
// it's an error reply
|
||||
QString msg = QLatin1String(QT_TRANSLATE_NOOP("QNetworkReply",
|
||||
"Error downloading %1 - server replied: %2"));
|
||||
"Error transferring %1 - server replied: %2"));
|
||||
incomingErrorDetail = msg.arg(httpRequest.url().toString(), httpReply->reasonPhrase());
|
||||
incomingErrorCode = statusCodeFromHttp(httpReply->statusCode(), httpRequest.url());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user