Skip to content

Commit

Permalink
Call default error handler only after the exception is sent
Browse files Browse the repository at this point in the history
  • Loading branch information
fluiddot committed Feb 23, 2024
1 parent 1a82885 commit abfa5cf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/errorLogging/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,9 @@ export default () => {
// TODO: Set severity and exception mechanism.
// https://github.com/getsentry/sentry-react-native/blob/adfb66f16438dfd98f280307844778c7291b584b/src/js/integrations/reactnativeerrorhandlers.ts#L235-L239

// Send exception to the host app.
logException( error, {}, () => {
// Wait for the exception to be sent to host app.
defaultHandler( error, isFatal );
} );

// TODO: Wait for the exception to be sent to host app.
defaultHandler( error, isFatal );
} );
};

0 comments on commit abfa5cf

Please sign in to comment.