Skip to content

Commit

Permalink
If ExceptionsManager.handleException throws, throw the original error
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mhorowitz authored and Facebook Github Bot 2 committed Jun 23, 2016
1 parent fff3d5d commit 8feb1dc
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ function setUpErrorHandler() {
require('ExceptionsManager').handleException(e, isFatal);
} catch (ee) {
console.log('Failed to print error: ', ee.message);
throw e;
}
}

Expand Down

0 comments on commit 8feb1dc

Please sign in to comment.