aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/content-repo.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2019-06-07 19:16:33 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2019-06-07 19:33:38 +0900
commit93f0c8fe89f448d1d58caa757573f17102369471 (patch)
treea3167587bef1a61c64b07fc1325d28a7bcd65069 /lib/csapi/content-repo.cpp
parent10c4be59438ac614a01800fb44e351e7039fe6e6 (diff)
downloadlibquotient-93f0c8fe89f448d1d58caa757573f17102369471.tar.gz
libquotient-93f0c8fe89f448d1d58caa757573f17102369471.zip
Generated files in csapi/: switch from now-deprecated JsonParserError to IncorrectResponse
Diffstat (limited to 'lib/csapi/content-repo.cpp')
-rw-r--r--lib/csapi/content-repo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/csapi/content-repo.cpp b/lib/csapi/content-repo.cpp
index 22223985..7e490604 100644
--- a/lib/csapi/content-repo.cpp
+++ b/lib/csapi/content-repo.cpp
@@ -50,7 +50,7 @@ BaseJob::Status UploadContentJob::parseJson(const QJsonDocument& data)
{
auto json = data.object();
if (!json.contains("content_uri"_ls))
- return { JsonParseError,
+ return { IncorrectResponse,
"The key 'content_uri' not found in the response" };
fromJson(json.value("content_uri"_ls), d->contentUri);
return Success;