mirror of
https://github.com/status-im/react-native.git
synced 2025-01-15 12:05:06 +00:00
show soft errors as redboxes in dev
Summary: These are generally things sent to console.error Reviewed By: lexs Differential Revision: D3445393 fbshipit-source-id: e76e82dbaa32dc71100ae6b1d721f80007d8cd3a
This commit is contained in:
parent
477cc52945
commit
d78602b8cd
@ -80,7 +80,11 @@ public class ExceptionsManagerModule extends BaseJavaModule {
|
||||
|
||||
@ReactMethod
|
||||
public void reportSoftException(String title, ReadableArray details, int exceptionId) {
|
||||
FLog.e(ReactConstants.TAG, stackTraceToString(title, details));
|
||||
if (mDevSupportManager.getDevSupportEnabled()) {
|
||||
mDevSupportManager.showNewJSError(title, details, exceptionId);
|
||||
} else {
|
||||
FLog.e(ReactConstants.TAG, stackTraceToString(title, details));
|
||||
}
|
||||
}
|
||||
|
||||
private void showOrThrowError(String title, ReadableArray details, int exceptionId) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user