[ReactNative] Disable console.error => redboxes to unwedge Android

This commit is contained in:
Philipp von Weitershausen 2015-04-23 10:42:00 -07:00
parent 7de74b129d
commit d2dbf4e0ed
1 changed files with 5 additions and 1 deletions

View File

@ -60,7 +60,11 @@
if (global.reportException && level === LOG_LEVELS.error) { if (global.reportException && level === LOG_LEVELS.error) {
var error = new Error(str); var error = new Error(str);
error.framesToPop = 1; error.framesToPop = 1;
global.reportException(error); // TODO(sahrens): re-enable this when we have a way to turn
// it off by default for MAdMan/Android, and/or all
// consumers of console.error() are fixed, including
// CatalystErrorHandlerModuleTestCase
// global.reportException(error);
} }
}; };
} }