diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2016-04-11 10:44:46 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2016-04-11 10:44:46 +0900 |
commit | af5fb5e0ffec87d59a7b0df778d226efc3132e57 (patch) | |
tree | 9eb3f6a508099fd1a48c4df01906d7c58326b524 /jobs/basejob.cpp | |
parent | a53779d8ebb045e5bc5304f96120fa52d8612d44 (diff) | |
download | libquotient-af5fb5e0ffec87d59a7b0df778d226efc3132e57.tar.gz libquotient-af5fb5e0ffec87d59a7b0df778d226efc3132e57.zip |
Minor fixes and cleanup
1. Remove accidental trailing \
2. Show the contents of NetworkError in logs
Diffstat (limited to 'jobs/basejob.cpp')
-rw-r--r-- | jobs/basejob.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jobs/basejob.cpp b/jobs/basejob.cpp index b7e1b718..bf4ade89 100644 --- a/jobs/basejob.cpp +++ b/jobs/basejob.cpp @@ -81,7 +81,7 @@ void BaseJob::start() QNetworkRequest req = QNetworkRequest(url); req.setHeader(QNetworkRequest::ContentTypeHeader, "application/json"); #if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)) - req.setAttribute(QNetworkRequest::FollowRedirectsAttribute, true);\ + req.setAttribute(QNetworkRequest::FollowRedirectsAttribute, true); req.setMaximumRedirectsAllowed(10); #endif QJsonDocument data = QJsonDocument(this->data()); @@ -124,7 +124,7 @@ void BaseJob::gotReply() { if( d->reply->error() != QNetworkReply::NoError ) { - qDebug() << "NetworkError!!!"; + qDebug() << "NetworkError!!!" << d->reply->error(); fail( NetworkError, d->reply->errorString() ); return; } |