aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2019-06-07 10:37:41 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2019-06-07 19:29:30 +0900
commit10c4be59438ac614a01800fb44e351e7039fe6e6 (patch)
tree51327cc05d80c53e4079f8cc78b8344078f15138 /lib
parente8718d8b1d61d6f70e61da0436f793a461e83bd7 (diff)
downloadlibquotient-10c4be59438ac614a01800fb44e351e7039fe6e6.tar.gz
libquotient-10c4be59438ac614a01800fb44e351e7039fe6e6.zip
*.cpp.mustache: switch from now-deprecated JsonParseError to IncorrectResponse
Diffstat (limited to 'lib')
-rw-r--r--lib/csapi/{{base}}.cpp.mustache2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/csapi/{{base}}.cpp.mustache b/lib/csapi/{{base}}.cpp.mustache
index ff888d76..010f9116 100644
--- a/lib/csapi/{{base}}.cpp.mustache
+++ b/lib/csapi/{{base}}.cpp.mustache
@@ -115,7 +115,7 @@ BaseJob::Status {{camelCaseOperationId}}Job::parseJson(const QJsonDocument& data
{{#inlineResponse}} fromJson(data, d->{{paramName}});
{{/inlineResponse}}{{^inlineResponse}} auto json = data.object();
{{#properties}}{{#required?}} if (!json.contains("{{baseName}}"_ls))
- return { JsonParseError,
+ return { IncorrectResponse,
"The key '{{baseName}}' not found in the response" };
{{/required?}} fromJson(json.value("{{baseName}}"_ls), d->{{paramName}});
{{/properties}}{{/inlineResponse}} return Success;