mirror of
https://github.com/status-im/metro.git
synced 2025-01-21 00:19:31 +00:00
[ReactNative] Disable console.error => redboxes to unwedge Android
This commit is contained in:
parent
98c10d72d2
commit
240424714e
@ -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);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user