mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-02 09:21:44 +08:00
If ExceptionsManager.handleException throws, throw the original error
Summary: This will let the JSC exception handling catch the error, and display it in a red box. Reviewed By: yungsters Differential Revision: D3468336 fbshipit-source-id: b89335dbcebf16a881bba783c68242e2b0cd509f
This commit is contained in:
committed by
Facebook Github Bot 2
parent
fff3d5dfb4
commit
8feb1dc3b7
@@ -136,6 +136,7 @@ function setUpErrorHandler() {
|
||||
require('ExceptionsManager').handleException(e, isFatal);
|
||||
} catch (ee) {
|
||||
console.log('Failed to print error: ', ee.message);
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user