Change the default guard behavior to throw the exception
Differential Revision: D3428928 fbshipit-source-id: 7847d7fac6a2dc1e4c58dfd5f97feea97ba58930
This commit is contained in:
parent
3cd01125e2
commit
50caf4e809
|
@ -79,7 +79,7 @@ global.ErrorUtils = ErrorUtils;
|
||||||
*/
|
*/
|
||||||
function setupErrorGuard() {
|
function setupErrorGuard() {
|
||||||
var onError = function(e) {
|
var onError = function(e) {
|
||||||
global.console.error('Error: ' + e.message + ', stack:\n' + e.stack);
|
throw e;
|
||||||
};
|
};
|
||||||
global.ErrorUtils.setGlobalHandler(onError);
|
global.ErrorUtils.setGlobalHandler(onError);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue