Don't show stack traces for known exception types

refs #6070
This commit is contained in:
Gunnar Beutner 2014-12-20 15:41:31 +01:00
parent c433284d27
commit 9f6b90cd2d
1 changed files with 1 additions and 1 deletions

View File

@ -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;