Commit e90b9cb4 authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook Github Bot

Cut unnecessary unreachable note in exceptionStr

Summary: [Folly] Cut unnecessary `assume_unreachable` in `exceptionStr`.

Reviewed By: meyering

Differential Revision: D14129281

fbshipit-source-id: a7ae13188bb19d829a6c977243719285186dbfec
parent 02ddfa11
...@@ -52,10 +52,7 @@ inline fbstring exceptionStr(std::exception_ptr ep) { ...@@ -52,10 +52,7 @@ inline fbstring exceptionStr(std::exception_ptr ep) {
return catch_exception( return catch_exception(
[&]() -> fbstring { [&]() -> fbstring {
return catch_exception<std::exception const&>( return catch_exception<std::exception const&>(
[&]() -> fbstring { [&]() -> fbstring { std::rethrow_exception(ep); },
std::rethrow_exception(ep);
assume_unreachable();
},
[](auto&& e) { return exceptionStr(e); }); [](auto&& e) { return exceptionStr(e); });
}, },
[]() -> fbstring { return "<unknown exception>"; }); []() -> fbstring { return "<unknown exception>"; });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment