Skip to content

Commit

Permalink
Change the default guard behavior to throw the exception
Browse files Browse the repository at this point in the history
Differential Revision: D3428928

fbshipit-source-id: 7847d7fac6a2dc1e4c58dfd5f97feea97ba58930
  • Loading branch information
mhorowitz authored and Facebook Github Bot 8 committed Jun 14, 2016
1 parent 3cd0112 commit 50caf4e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ global.ErrorUtils = ErrorUtils;
*/
function setupErrorGuard() {
var onError = function(e) {
global.console.error('Error: ' + e.message + ', stack:\n' + e.stack);
throw e;
};
global.ErrorUtils.setGlobalHandler(onError);
}
Expand Down

0 comments on commit 50caf4e

Please sign in to comment.