aboutsummaryrefslogtreecommitdiff
path: root/jobs
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-01-25 14:07:24 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-01-25 14:07:24 +0900
commit14abbe278dd05394ffb5b4354f54ba8795ca0b5b (patch)
tree2ec8fe1f02ff24aaa7c5ca0ae9b3d2e644c4d5e2 /jobs
parentb4e699a0076fc7827fa89af33d8774d43eb017ce (diff)
parentd1663570003b20be58d4ce87e4b1d26bdf0029a8 (diff)
downloadlibquotient-14abbe278dd05394ffb5b4354f54ba8795ca0b5b.tar.gz
libquotient-14abbe278dd05394ffb5b4354f54ba8795ca0b5b.zip
Merge branch 'kitsune-invite-state-caching'
Diffstat (limited to 'jobs')
-rw-r--r--jobs/basejob.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/jobs/basejob.cpp b/jobs/basejob.cpp
index 720ac560..2d0d8b1b 100644
--- a/jobs/basejob.cpp
+++ b/jobs/basejob.cpp
@@ -291,9 +291,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: