mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-28 12:15:37 +08:00
Exposing Recoverable Errors
Differential Revision: D4383792 fbshipit-source-id: e6d0f57fcaacf242e95bfcf589a4fa840c317fe5
This commit is contained in:
committed by
Facebook Github Bot
parent
24f3add010
commit
da428d6c3d
@@ -16,7 +16,7 @@ TEST(RecoverableError, RunRethrowingAsRecoverableRecoverTest) {
|
||||
});
|
||||
FAIL() << "Unthrown exception";
|
||||
} catch (const RecoverableError &err) {
|
||||
ASSERT_STREQ(err.what(), "catch me");
|
||||
ASSERT_STREQ(err.what(), "facebook::react::Recoverable: catch me");
|
||||
} catch (...) {
|
||||
FAIL() << "Uncaught exception";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user