]> granicus.if.org Git - icinga2/commitdiff
Fix verbose error handling in variable and template query handlers
authorMichael Friedrich <michael.friedrich@icinga.com>
Fri, 6 Apr 2018 10:50:06 +0000 (12:50 +0200)
committerMichael Friedrich <michael.friedrich@icinga.com>
Fri, 6 Apr 2018 10:50:06 +0000 (12:50 +0200)
lib/remote/templatequeryhandler.cpp
lib/remote/variablequeryhandler.cpp

index 60584c0e7f3efddc97400cf9856a76330fd04df2..153c887e5f624c2b0108d0506a38fabf170ed068 100644 (file)
@@ -127,7 +127,7 @@ bool TemplateQueryHandler::HandleRequest(const ApiUser::Ptr& user, HttpRequest&
        } catch (const std::exception& ex) {
                HttpUtility::SendJsonError(response, params, 404,
                        "No templates found.",
-                       HttpUtility::GetLastParameter(params, "verboseErrors") ? DiagnosticInformation(ex) : "");
+                       DiagnosticInformation(ex));
                return true;
        }
 
index 7effbfb9c04677135f9e9bfca36e704e2c2927ca..4a36fc8ce292d771b095395cbdcd63974580acf2 100644 (file)
@@ -97,7 +97,7 @@ bool VariableQueryHandler::HandleRequest(const ApiUser::Ptr& user, HttpRequest&
        } catch (const std::exception& ex) {
                HttpUtility::SendJsonError(response, params, 404,
                        "No variables found.",
-                       HttpUtility::GetLastParameter(params, "verboseErrors") ? DiagnosticInformation(ex) : "");
+                       DiagnosticInformation(ex));
                return true;
        }