Explain crash when exception is thrown from Scope Guard
Summary: Print a message to `std::cerr` when the current program is about to call `std::terminate` because a `folly::ScopeGuard` callback threw an exception. This goes to `std::terminate` in the (common) cases when the `ScopeGuard` destructor is `noexcept` This gives the user a small clue as to what just happened, since the default diagnostics for this on some platforms do not help at all. Reviewed By: nbronson Differential Revision: D4061096 fbshipit-source-id: c3b534d4a36b095e08e46f375251b6fd416ccd68
Showing
folly/ScopeGuard.cpp
0 → 100644
Please register or sign in to comment