Skip to content

Commit

Permalink
sentry: Ignore TransitionAborted errors
Browse files Browse the repository at this point in the history
see code comment ;)
  • Loading branch information
Turbo87 committed Oct 4, 2020
1 parent eeff853 commit e665842
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions app/sentry.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,17 @@ export function init() {
environment,
...config.sentry,
integrations,

beforeSend(event, hint) {
let error = hint?.originalException;

// Ignoring these errors due to https://github.com/emberjs/ember.js/issues/12505
// and https://github.com/emberjs/ember.js/issues/18416
if (error && error.name === 'TransitionAborted') {
return null;
}

return event;
},
});
}

0 comments on commit e665842

Please sign in to comment.