[Pkg-owncloud-commits] [owncloud-client] 16/70: Fix reporting the right error in a GET
Sandro Knauß
hefee-guest at moszumanska.debian.org
Sat May 17 20:01:25 UTC 2014
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit 2e76fe87c2f3cb8ee8591de715942bdb171392f6
Author: Olivier Goffart <ogoffart at woboq.com>
Date: Fri May 2 17:25:13 2014 +0200
Fix reporting the right error in a GET
We always reported the lack of e-tag instead of the real error
---
src/mirall/propagator_qnam.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/mirall/propagator_qnam.cpp b/src/mirall/propagator_qnam.cpp
index 2992061..08a2e4f 100644
--- a/src/mirall/propagator_qnam.cpp
+++ b/src/mirall/propagator_qnam.cpp
@@ -377,8 +377,8 @@ void GETFileJob::start() {
void GETFileJob::slotMetaDataChanged()
{
- qDebug() << Q_FUNC_INFO << reply()->error() << reply()->errorString() << reply()->attribute(QNetworkRequest::HttpStatusCodeAttribute);
- if (reply()->error() != QNetworkReply::NoError ) {
+ if (reply()->error() != QNetworkReply::NoError
+ || reply()->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt() / 100 != 2) {
// We will handle the error when the job is finished.
return;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list