Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/ErrorBoundary/BaseErrorBoundary.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class BaseErrorBoundary extends React.Component {
}

componentDidCatch(error, errorInfo) {
this.props.logError(this.props.errorMessage, error, errorInfo);
this.props.logError(this.props.errorMessage, error, JSON.stringify(errorInfo));

// We hide the splash screen since the error might happened during app init
BootSplash.hide();
Expand Down
2 changes: 1 addition & 1 deletion src/components/ErrorBoundary/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ BaseErrorBoundary.defaultProps.logError = (errorMessage, error, errorInfo) => {

/* On native we also log the error to crashlytics
* Since the error was handled we need to manually tell crashlytics about it */
crashlytics().log(`errorInfo: ${JSON.stringify(errorInfo)}`);
crashlytics().log(`errorInfo: ${errorInfo}`);
crashlytics().recordError(error);
};

Expand Down