diff --git a/react-packager/src/Resolver/polyfills/error-guard.js b/react-packager/src/Resolver/polyfills/error-guard.js index d013ec11..eaeea1f3 100644 --- a/react-packager/src/Resolver/polyfills/error-guard.js +++ b/react-packager/src/Resolver/polyfills/error-guard.js @@ -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); }