mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
Abort on std::logic_error
in CI (#51907)
* Update Exception.cpp * Update Exception.cpp * Update Exception.cpp
This commit is contained in:
parent
64f8d7bc85
commit
973f4def70
@ -429,17 +429,20 @@ PreformattedMessage getCurrentExceptionMessageAndPattern(bool with_stacktrace, b
|
||||
}
|
||||
catch (...) {}
|
||||
|
||||
// #ifdef ABORT_ON_LOGICAL_ERROR
|
||||
// try
|
||||
// {
|
||||
// throw;
|
||||
// }
|
||||
// catch (const std::logic_error &)
|
||||
// {
|
||||
// abortOnFailedAssertion(stream.str());
|
||||
// }
|
||||
// catch (...) {}
|
||||
// #endif
|
||||
#ifdef ABORT_ON_LOGICAL_ERROR
|
||||
try
|
||||
{
|
||||
throw;
|
||||
}
|
||||
catch (const std::logic_error &)
|
||||
{
|
||||
if (!with_stacktrace)
|
||||
stream << ", Stack trace:\n\n" << getExceptionStackTraceString(e);
|
||||
|
||||
abortOnFailedAssertion(stream.str());
|
||||
}
|
||||
catch (...) {}
|
||||
#endif
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user