mirror of
https://github.com/nextcloud/desktop.git
synced 2024-12-13 15:46:01 +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) {
|
||||
qCWarning(lcJsonApiJob) << "Network error: " << path() << errorString() << reply()->attribute(QNetworkRequest::HttpStatusCodeAttribute);
|
||||
statusCode = reply()->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt();
|
||||
emit jsonReceived(QJsonDocument(), statusCode);
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue