Abort on std::logic_error in CI (#51907)

* Update Exception.cpp

* Update Exception.cpp

* Update Exception.cpp
This commit is contained in:
Alexander Tokmakov 2023-09-04 12:50:59 +02:00 committed by GitHub
parent 64f8d7bc85
commit 973f4def70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 (...)
{