mirror of https://github.com/status-im/metro.git
Change the default guard behavior to throw the exception
Differential Revision: D3428928 fbshipit-source-id: 7847d7fac6a2dc1e4c58dfd5f97feea97ba58930
This commit is contained in:
parent
b02f773e6a
commit
3f058100cd
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue