From 9f6b90cd2d14771ec0da967f9c10c76cf516ffb8 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Sat, 20 Dec 2014 15:41:31 +0100 Subject: [PATCH] Don't show stack traces for known exception types refs #6070 --- lib/base/exception.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/base/exception.cpp b/lib/base/exception.cpp index fa41bafe7..468f4fc5c 100644 --- a/lib/base/exception.cpp +++ b/lib/base/exception.cpp @@ -138,7 +138,7 @@ String icinga::DiagnosticInformation(const std::exception& ex, bool verbose, Sta String message = ex.what(); - if (verbose) + if (message.IsEmpty()) result << boost::diagnostic_information(ex); else result << "Error: " << message;