aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-01-25 11:11:50 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-01-25 13:23:59 +0900
commit84e183a70b831d1e18c373099988420f5050254b (patch)
tree9629431fc9f4655f3f00633e84adfc759f6e902e
parent52aadc68d73d7e590ab7ec3f8b4382483a50bcf1 (diff)
downloadlibquotient-84e183a70b831d1e18c373099988420f5050254b.tar.gz
libquotient-84e183a70b831d1e18c373099988420f5050254b.zip
BaseJob::checkReply: log job returned status more explicitly
-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: