mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 15:44:11 +02:00
parent
64aa5d1b09
commit
eb30f69454
@ -61,19 +61,22 @@ String DiagnosticInformation(const T& ex, StackTrace *stack = NULL, ContextTrace
|
|||||||
if (boost::get_error_info<StackTraceErrorInfo>(ex) == NULL) {
|
if (boost::get_error_info<StackTraceErrorInfo>(ex) == NULL) {
|
||||||
result << std::endl;
|
result << std::endl;
|
||||||
|
|
||||||
|
if (!stack)
|
||||||
|
stack = GetLastExceptionStack();
|
||||||
|
|
||||||
if (stack)
|
if (stack)
|
||||||
result << *stack;
|
result << *stack;
|
||||||
else
|
|
||||||
result << *GetLastExceptionStack();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (boost::get_error_info<ContextTraceErrorInfo>(ex) == NULL) {
|
if (boost::get_error_info<ContextTraceErrorInfo>(ex) == NULL) {
|
||||||
result << std::endl;
|
result << std::endl;
|
||||||
|
|
||||||
|
if (!context)
|
||||||
|
context = GetLastExceptionContext();
|
||||||
|
|
||||||
if (context)
|
if (context)
|
||||||
result << *context;
|
result << *context;
|
||||||
else
|
|
||||||
result << *GetLastExceptionContext();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user