mirror of
https://github.com/nextcloud/desktop.git
synced 2024-12-13 17:38:32 +03:00
[bugfix] Return the error code, don't discard it.
This commit is contained in:
parent
29b64640fa
commit
f4bbec1019
1 changed files with 1 additions and 0 deletions
|
@ -787,6 +787,7 @@ bool JsonApiJob::finished()
|
||||||
|
|
||||||
if (reply()->error() != QNetworkReply::NoError) {
|
if (reply()->error() != QNetworkReply::NoError) {
|
||||||
qCWarning(lcJsonApiJob) << "Network error: " << path() << errorString() << reply()->attribute(QNetworkRequest::HttpStatusCodeAttribute);
|
qCWarning(lcJsonApiJob) << "Network error: " << path() << errorString() << reply()->attribute(QNetworkRequest::HttpStatusCodeAttribute);
|
||||||
|
statusCode = reply()->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt();
|
||||||
emit jsonReceived(QJsonDocument(), statusCode);
|
emit jsonReceived(QJsonDocument(), statusCode);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue