non-throwing, non-allocating exception_wrapper
[folly.git] / folly / futures / test / FutureSplitterTest.cpp
index c14e30c0f9ba2129dbe633d7f1ffe29409e93cae..927a2d403a002c50777fc4948c03074d615d9201 100644 (file)
@@ -126,8 +126,8 @@ TEST(FutureSplitter, splitFutureFailure) {
   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());