Fix verbose error message in modify object handler

This commit is contained in:
Michael Friedrich 2018-04-06 12:52:17 +02:00
parent 6b2decb44b
commit 17846e04d8
1 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ bool ModifyObjectHandler::HandleRequest(const ApiUser::Ptr& user, HttpRequest& r
} catch (const std::exception& ex) { } catch (const std::exception& ex) {
HttpUtility::SendJsonError(response, params, 404, HttpUtility::SendJsonError(response, params, 404,
"No objects found.", "No objects found.",
HttpUtility::GetLastParameter(params, "verboseErrors") ? DiagnosticInformation(ex) : ""); DiagnosticInformation(ex));
return true; return true;
} }
@ -71,7 +71,7 @@ bool ModifyObjectHandler::HandleRequest(const ApiUser::Ptr& user, HttpRequest& r
if (attrsVal.GetReflectionType() != Dictionary::TypeInstance) { if (attrsVal.GetReflectionType() != Dictionary::TypeInstance) {
HttpUtility::SendJsonError(response, params, 400, HttpUtility::SendJsonError(response, params, 400,
"Invalid type for 'attrs' attribute specified. Dictionary type is required.", Empty); "Invalid type for 'attrs' attribute specified. Dictionary type is required.");
return true; return true;
} }