Change the default guard behavior to throw the exception

Differential Revision: D3428928

fbshipit-source-id: 7847d7fac6a2dc1e4c58dfd5f97feea97ba58930
This commit is contained in:
Marc Horowitz 2016-06-14 16:22:53 -07:00 committed by Facebook Github Bot 8
parent b02f773e6a
commit 3f058100cd
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}