From 17846e04d8ba6f35448aef3469f509b9be17e9c9 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Fri, 6 Apr 2018 12:52:17 +0200 Subject: [PATCH] Fix verbose error message in modify object handler --- lib/remote/modifyobjecthandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/remote/modifyobjecthandler.cpp b/lib/remote/modifyobjecthandler.cpp index 603207ebb..c08d1dee2 100644 --- a/lib/remote/modifyobjecthandler.cpp +++ b/lib/remote/modifyobjecthandler.cpp @@ -63,7 +63,7 @@ bool ModifyObjectHandler::HandleRequest(const ApiUser::Ptr& user, HttpRequest& r } catch (const std::exception& ex) { HttpUtility::SendJsonError(response, params, 404, "No objects found.", - HttpUtility::GetLastParameter(params, "verboseErrors") ? DiagnosticInformation(ex) : ""); + DiagnosticInformation(ex)); return true; } @@ -71,7 +71,7 @@ bool ModifyObjectHandler::HandleRequest(const ApiUser::Ptr& user, HttpRequest& r if (attrsVal.GetReflectionType() != Dictionary::TypeInstance) { 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; }