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/whoami.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/whoami.cpp')
-rw-r--r-- | lib/csapi/whoami.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/csapi/whoami.cpp b/lib/csapi/whoami.cpp index aebdf5d3..ce024c33 100644 --- a/lib/csapi/whoami.cpp +++ b/lib/csapi/whoami.cpp @@ -44,7 +44,7 @@ BaseJob::Status GetTokenOwnerJob::parseJson(const QJsonDocument& data) { auto json = data.object(); if (!json.contains("user_id"_ls)) - return { JsonParseError, + return { IncorrectResponse, "The key 'user_id' not found in the response" }; fromJson(json.value("user_id"_ls), d->userId); return Success; |