Reputation: 6489
It seems like Sentry is reporting an error I intentionally swallow. Why is this? How can I tell Sentry not to report on this swallowed error?
Upvotes: 4
Views: 3091
Reputation: 376
Sentry.init({
ignoreErrors: ['NotSupportedError']
// or
ignoreErrors: [/operation is not supported/]
})
or with beforeSend
Sentry.init({
beforeSend(event) {
// or `value` instead of a `type`
if (event.exception && event.exception.values[0].type === 'NotSupportedError') {
return null
}
return event;
}
})
Upvotes: 3