]> granicus.if.org Git - icinga2/commitdiff
Enhance error handling in type query handler
authorMichael Friedrich <michael.friedrich@icinga.com>
Thu, 5 Apr 2018 15:22:56 +0000 (17:22 +0200)
committerMichael Friedrich <michael.friedrich@icinga.com>
Thu, 5 Apr 2018 15:23:26 +0000 (17:23 +0200)
lib/remote/typequeryhandler.cpp

index e3f0c72572ffb12fee3f0fdce4c14c98c3cca6c5..fe4703f6026f6b846af73a46c820766de1a66369 100644 (file)
@@ -91,7 +91,7 @@ bool TypeQueryHandler::HandleRequest(const ApiUser::Ptr& user, HttpRequest& requ
        } catch (const std::exception& ex) {
                HttpUtility::SendJsonError(response, params, 404,
                        "No objects found.",
-                       HttpUtility::GetLastParameter(params, "verboseErrors") ? DiagnosticInformation(ex) : "");
+                       DiagnosticInformation(ex));
                return true;
        }