mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
Casing consistency for exception_wrapper::throw_exception
Summary: [Folly] Casing consistency for `exception_wrapper::throw_exception`. Reviewed By: Orvid Differential Revision: D4944818 fbshipit-source-id: 72056fb24ab6362e9a0319f73b5bbf8c92d658ca
This commit is contained in:
parent
d090035fa4
commit
d5837dca4b
@ -109,7 +109,7 @@ TEST_F(FakeBackingStoreTest, getBlob) {
|
||||
EXPECT_THROW_RE(future3.get(), std::logic_error, "does not compute");
|
||||
ASSERT_TRUE(future4Failed);
|
||||
EXPECT_THROW_RE(
|
||||
future4Error.throwException(), std::logic_error, "does not compute");
|
||||
future4Error.throw_exception(), std::logic_error, "does not compute");
|
||||
|
||||
// Calling setReady() should make the pending futures ready, as well
|
||||
// as all subsequent Futures returned by getBlob()
|
||||
|
@ -41,7 +41,7 @@ EdenBug::~EdenBug() noexcept(false) {
|
||||
// Callers should only ever store EdenBug objects if they plan to call
|
||||
// toException() on them.
|
||||
if (throwOnDestruction_) {
|
||||
toException().throwException();
|
||||
toException().throw_exception();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -31,5 +31,5 @@ TEST(EdenBug, toException) {
|
||||
EdenBugDisabler noCrash;
|
||||
auto bug = EDEN_BUG() << "whoops";
|
||||
auto ew = bug.toException();
|
||||
EXPECT_THROW_RE(ew.throwException(), std::runtime_error, "whoops");
|
||||
EXPECT_THROW_RE(ew.throw_exception(), std::runtime_error, "whoops");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user