diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-03-27 23:24:14 +0300 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-03-27 23:24:14 +0300 |
commit | edaf027571106c2dedba7895d56fd4c2121a56ed (patch) | |
tree | e48d7a9d5225c54c5939d36ca3b3d8f28be29ae3 | |
parent | 781278b3358e63359b54deb16b0c7ac8bf95df7c (diff) | |
download | libquotient-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.cpp | 1 |
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: |