aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/room_upgrades.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/room_upgrades.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/room_upgrades.cpp')
-rw-r--r--lib/csapi/room_upgrades.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/csapi/room_upgrades.cpp b/lib/csapi/room_upgrades.cpp
index f58fd675..f80c3aba 100644
--- a/lib/csapi/room_upgrades.cpp
+++ b/lib/csapi/room_upgrades.cpp
@@ -41,7 +41,7 @@ BaseJob::Status UpgradeRoomJob::parseJson(const QJsonDocument& data)
{
auto json = data.object();
if (!json.contains("replacement_room"_ls))
- return { JsonParseError,
+ return { IncorrectResponse,
"The key 'replacement_room' not found in the response" };
fromJson(json.value("replacement_room"_ls), d->replacementRoom);
return Success;