]> granicus.if.org Git - icinga2/commitdiff
Fix verbose error message in modify object handler
authorMichael Friedrich <michael.friedrich@icinga.com>
Fri, 6 Apr 2018 10:52:17 +0000 (12:52 +0200)
committerMichael Friedrich <michael.friedrich@icinga.com>
Fri, 6 Apr 2018 10:52:17 +0000 (12:52 +0200)
lib/remote/modifyobjecthandler.cpp

index 603207ebb80836c246b60beb58cdcdf544e6fe9c..c08d1dee29e608c7002361f868d1553b0fbd3975 100644 (file)
@@ -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;
        }