aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2017-03-27 23:24:14 +0300
committerKitsune Ral <Kitsune-Ral@users.sf.net>2017-03-27 23:24:14 +0300
commitedaf027571106c2dedba7895d56fd4c2121a56ed (patch)
treee48d7a9d5225c54c5939d36ca3b3d8f28be29ae3
parent781278b3358e63359b54deb16b0c7ac8bf95df7c (diff)
downloadlibquotient-edaf027571106c2dedba7895d56fd4c2121a56ed.tar.gz
libquotient-edaf027571106c2dedba7895d56fd4c2121a56ed.zip
Map QNetworkReply::UnknownContentError to BaseJob::IncorrectRequestError
This is what /join returns if I supply garbage for the alias.
-rw-r--r--jobs/basejob.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/jobs/basejob.cpp b/jobs/basejob.cpp
index fd70312e..92361dc4 100644
--- a/jobs/basejob.cpp
+++ b/jobs/basejob.cpp
@@ -186,6 +186,7 @@ BaseJob::Status BaseJob::checkReply(QNetworkReply* reply) const
return { ContentAccessError, reply->errorString() };
case QNetworkReply::ProtocolInvalidOperationError:
+ case QNetworkReply::UnknownContentError:
return { IncorrectRequestError, reply->errorString() };
case QNetworkReply::ContentNotFoundError: