X-Git-Url: http://plrg.eecs.uci.edu/git/?p=folly.git;a=blobdiff_plain;f=folly%2Ffutures%2Ftest%2FFutureSplitterTest.cpp;h=927a2d403a002c50777fc4948c03074d615d9201;hp=c14e30c0f9ba2129dbe633d7f1ffe29409e93cae;hb=19e3e9fe724a363e342e92a5b08378900d6ab539;hpb=c5b9338ec192ed46907905d173b65d158a038842 diff --git a/folly/futures/test/FutureSplitterTest.cpp b/folly/futures/test/FutureSplitterTest.cpp index c14e30c0..927a2d40 100644 --- a/folly/futures/test/FutureSplitterTest.cpp +++ b/folly/futures/test/FutureSplitterTest.cpp @@ -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());