aboutsummaryrefslogtreecommitdiff
path: root/jobs/basejob.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-01-26 09:00:33 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-01-26 09:00:33 +0900
commit76bff84a2aa63db677044cc529b910768fa018fa (patch)
treeefeb34e37b436267313169a1790e45a07e8f7fcb /jobs/basejob.cpp
parent7d506f7bebbcc3b5f8a37589f8fda6fa1e7e1efd (diff)
parent2f83e4be20a15013181c1ba6944e21f051ccac9d (diff)
downloadlibquotient-76bff84a2aa63db677044cc529b910768fa018fa.tar.gz
libquotient-76bff84a2aa63db677044cc529b910768fa018fa.zip
Merge branch 'master' into kitsune-gtad
Diffstat (limited to 'jobs/basejob.cpp')
-rw-r--r--jobs/basejob.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/jobs/basejob.cpp b/jobs/basejob.cpp
index 7fc56287..22ce5bd5 100644
--- a/jobs/basejob.cpp
+++ b/jobs/basejob.cpp
@@ -290,9 +290,10 @@ bool checkContentType(const QByteArray& type, const QByteArrayList& patterns)
BaseJob::Status BaseJob::checkReply(QNetworkReply* reply) const
{
- qCDebug(d->logCat) << this << "returned from" << reply->url().toDisplayString();
- if (reply->error() != QNetworkReply::NoError)
- qCDebug(d->logCat) << this << "returned" << reply->error();
+ qCDebug(d->logCat) << this << "returned"
+ << (reply->error() == QNetworkReply::NoError ?
+ "Success" : reply->errorString())
+ << "from" << reply->url().toDisplayString();
switch( reply->error() )
{
case QNetworkReply::NoError: