提交 eaaa4543 编写于 作者: A Azat Khuzhin

Abort on std::out_of_range in debug builds

This helps notice them in tests, same as:
- std::logic_error
- LOGICAL_ERROR
上级 c97fb4b0
......@@ -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)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册