Reorder crashpad crash simulation in VERIFY/AUDIT

so it happens after the log message rather than before
This commit is contained in:
Mat Sutcliffe
2020-03-24 17:29:11 +00:00
parent f8d59e7b04
commit 1b2f470cd6

View File

@@ -63,9 +63,6 @@ namespace BlackMisc
#endif
#if defined(QT_NO_DEBUG) || defined(Q_CC_MSVC)
# if defined(BLACK_USE_CRASHPAD)
CRASHPAD_SIMULATE_CRASH();
# endif
if (context && message)
{
CLogMessage(CLogCategory::verification()).warning(u"Failed to verify: %1 (%2 in %3) in %4 line %5") << condition << message << context << filename << line;
@@ -74,6 +71,9 @@ namespace BlackMisc
{
CLogMessage(CLogCategory::verification()).warning(u"Failed to verify: %1 in %2 line %3") << condition << filename << line;
}
# if defined(BLACK_USE_CRASHPAD)
CRASHPAD_SIMULATE_CRASH();
# endif
#endif
}
}