mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Merge pull request #6160 from nextcloud/bugfix/vfs-error-dialog-on-uknown-error
Do not show failure popul for VFS when hydration finished with code 200 or 204.
This commit is contained in:
commit
511af3a0a8
@ -351,9 +351,15 @@ void OCC::HydrationJob::onGetFinished()
|
||||
{
|
||||
_errorCode = _job->reply()->error();
|
||||
_statusCode = _job->reply()->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt();
|
||||
_errorString = _job->reply()->errorString();
|
||||
|
||||
qCInfo(lcHydration) << "GETFileJob finished" << _requestId << _folderPath << _errorCode << _statusCode << _errorString;
|
||||
if (_errorCode != 0 || (_statusCode != 200 && _statusCode != 204)) {
|
||||
_errorString = _job->reply()->errorString();
|
||||
}
|
||||
|
||||
if (!_errorString.isEmpty()) {
|
||||
qCInfo(lcHydration) << "GETFileJob finished" << _requestId << _folderPath << _errorCode << _statusCode << _errorString;
|
||||
} else {
|
||||
qCInfo(lcHydration) << "GETFileJob finished" << _requestId << _folderPath;
|
||||
}
|
||||
// GETFileJob deletes itself after this signal was handled
|
||||
_job = nullptr;
|
||||
if (_isCancelled) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user