Skip to content

Commit 176defa

Browse files
authored
Merge pull request #59 from master-atul/fix/recursive
Revert "Overiding console._errorOriginal"
2 parents b5ff77c + b079f7c commit 176defa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ export const setJSExceptionHandler = (customHandler = noop, allowedInDevMode = f
1414
const allowed = allowedInDevMode ? true : !__DEV__;
1515
if (allowed) {
1616
global.ErrorUtils.setGlobalHandler(customHandler);
17-
console.error = (error) => global.ErrorUtils.reportError(error); // sending console.error so that it can be caught
18-
console._errorOriginal = (error) => global.ErrorUtils.reportError(error); // overiding console._errorOriginal that is used by ExceptionsManager.handleException
17+
console.error = (message, error) => global.ErrorUtils.reportError(error); // sending console.error so that it can be caught
1918
} else {
2019
console.log('Skipping setJSExceptionHandler: Reason: In DEV mode and allowedInDevMode = false');
2120
}

0 commit comments

Comments
 (0)