Skip to content

Commit

Permalink
Merge pull request #12 from ShpuntiK/master
Browse files Browse the repository at this point in the history
fix error callstack in console
  • Loading branch information
gaearon committed Oct 6, 2015
2 parents 46eb666 + f5c77af commit e6b53d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ export default function catchErrors({ filename, components, imports }) {
if (console.reportErrorsAsExceptions) {
// Stop react-native from triggering its own error handler
console.reportErrorsAsExceptions = false;
console.error(err);
console.error(err.stack);
// Reactivate it so other errors are still handled
console.reportErrorsAsExceptions = true;
} else {
console.error(err);
console.error(err.stack);
}

return React.createElement(ErrorReporter, {
Expand Down

0 comments on commit e6b53d0

Please sign in to comment.