Skip to content
This repository has been archived by the owner on Jun 16, 2022. It is now read-only.

Commit

Permalink
don't reportError if it's not instance of error (#1865)
Browse files Browse the repository at this point in the history
  • Loading branch information
gre committed Aug 13, 2021
1 parent 1f2baac commit 4305eb6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ export default {
critical: (e: Error) => {
if (Config.DEBUG_ERROR) console.error(e);
else console.log(e);
Sentry.captureException(e);
if (e instanceof Error) {
Sentry.captureException(e);
}
},
};

0 comments on commit 4305eb6

Please sign in to comment.