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:
Marc Horowitz 2016-06-22 17:54:33 -07:00 committed by Facebook Github Bot 2
parent fff3d5dfb4
commit 8feb1dc3b7
1 changed files with 1 additions and 0 deletions

View File

@ -136,6 +136,7 @@ function setUpErrorHandler() {
require('ExceptionsManager').handleException(e, isFatal);
} catch (ee) {
console.log('Failed to print error: ', ee.message);
throw e;
}
}