EXPECT_FALSE(f1.isReady());
try {
throw std::runtime_error("Oops");
- } catch (...) {
- p.setException(exception_wrapper(std::current_exception()));
+ } catch (std::exception& e) {
+ p.setException(exception_wrapper(std::current_exception(), e));
}
EXPECT_TRUE(f1.isReady());
EXPECT_TRUE(f1.hasException());