[ReactNative] differentiate fatal and soft exceptions

This commit is contained in:
Spencer Ahrens authored and Christopher Chedeau committed 2015-05-13 13:24:37 -07:00
1 parent 484f63b1db
commit 81ad810186
6 files changed
+57 -15

No files matched your search

@@ -66,9 +66,9 @@ function setupDocumentShim() {
GLOBAL.MutationObserver = undefined;
}
function handleErrorWithRedBox(e) {
function handleErrorWithRedBox(e, isFatal) {
try {
require('ExceptionsManager').handleException(e);
require('ExceptionsManager').handleException(e, isFatal);
} catch(ee) {
console.log('Failed to print error: ', ee.message);
}