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 (...) {}
|
catch (...) {}
|
||||||
|
|
||||||
// #ifdef ABORT_ON_LOGICAL_ERROR
|
#ifdef ABORT_ON_LOGICAL_ERROR
|
||||||
// try
|
try
|
||||||
// {
|
{
|
||||||
// throw;
|
throw;
|
||||||
// }
|
}
|
||||||
// catch (const std::logic_error &)
|
catch (const std::logic_error &)
|
||||||
// {
|
{
|
||||||
// abortOnFailedAssertion(stream.str());
|
if (!with_stacktrace)
|
||||||
// }
|
stream << ", Stack trace:\n\n" << getExceptionStackTraceString(e);
|
||||||
// catch (...) {}
|
|
||||||
// #endif
|
abortOnFailedAssertion(stream.str());
|
||||||
|
}
|
||||||
|
catch (...) {}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
catch (...)
|
catch (...)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user