mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 02:03:11 +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
|
// FALLTHRU
|
||||||
default: {
|
default: {
|
||||||
_attemptsRemaining = 0;
|
_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
|
auto error = (result == ResourceRequest::Timeout) ? QNetworkReply::TimeoutError
|
||||||
: QNetworkReply::UnknownNetworkError;
|
: QNetworkReply::UnknownNetworkError;
|
||||||
emit failed(error);
|
emit failed(error);
|
||||||
|
|
Loading…
Reference in a new issue