Merge pull request #12704 from azat/abort-on-out_of_range

Abort on std::out_of_range in debug builds
This commit is contained in:
alexey-milovidov 2020-07-24 15:21:51 +03:00 committed by GitHub
commit 7776adcfe1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -324,6 +324,13 @@ void TCPHandler::runImpl()
sendException(*exception, send_exception_with_stack_trace);
std::abort();
}
catch (const std::out_of_range & e)
{
state.io.onException();
exception.emplace(Exception::CreateFromSTDTag{}, e);
sendException(*exception, send_exception_with_stack_trace);
std::abort();
}
#endif
catch (const std::exception & e)
{