diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-06-07 19:16:33 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-06-07 19:33:38 +0900 |
commit | 93f0c8fe89f448d1d58caa757573f17102369471 (patch) | |
tree | a3167587bef1a61c64b07fc1325d28a7bcd65069 /lib/csapi/keys.cpp | |
parent | 10c4be59438ac614a01800fb44e351e7039fe6e6 (diff) | |
download | libquotient-93f0c8fe89f448d1d58caa757573f17102369471.tar.gz libquotient-93f0c8fe89f448d1d58caa757573f17102369471.zip |
Generated files in csapi/: switch from now-deprecated JsonParserError to IncorrectResponse
Diffstat (limited to 'lib/csapi/keys.cpp')
-rw-r--r-- | lib/csapi/keys.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/csapi/keys.cpp b/lib/csapi/keys.cpp index 6c16a8a3..5bbc1aab 100644 --- a/lib/csapi/keys.cpp +++ b/lib/csapi/keys.cpp @@ -42,7 +42,7 @@ BaseJob::Status UploadKeysJob::parseJson(const QJsonDocument& data) { auto json = data.object(); if (!json.contains("one_time_key_counts"_ls)) - return { JsonParseError, + return { IncorrectResponse, "The key 'one_time_key_counts' not found in the response" }; fromJson(json.value("one_time_key_counts"_ls), d->oneTimeKeyCounts); return Success; |