mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 19:55:07 +02:00
DEV-262 - Improve logging on failure to load resource
This commit is contained in:
parent
25fc4fbb8f
commit
4f9d62696c
1 changed files with 2 additions and 1 deletions
|
@ -842,7 +842,8 @@ bool Resource::handleFailedRequest(ResourceRequest::Result result) {
|
|||
// FALLTHRU
|
||||
default: {
|
||||
_attemptsRemaining = 0;
|
||||
qCDebug(networking) << "Error loading, attempt:" << _attempts << "attemptsRemaining:" << _attemptsRemaining;
|
||||
QMetaEnum metaEnum = QMetaEnum::fromType<ResourceRequest::Result>();
|
||||
qCDebug(networking) << "Error loading:" << metaEnum.valueToKey(result) << "resource:" << _url.toString();
|
||||
auto error = (result == ResourceRequest::Timeout) ? QNetworkReply::TimeoutError
|
||||
: QNetworkReply::UnknownNetworkError;
|
||||
emit failed(error);
|
||||
|
|
Loading…
Reference in a new issue