-
Notifications
You must be signed in to change notification settings - Fork 111
Open
Labels
Description
What problem does this feature solve?
It will not be necessary to use $sentry.captureException(error) to catch an error everywhere as described here, each error will be logged itself if it appears in asyncData.
What does the proposed changes look like?
I want the error to be caught through this module, for example, in this code:
async asyncData ({ params }) {
if (params.id === '123') throw Error('Test error')
someFunctionThatCanThrowError()
}That is, not to write like this:
async asyncData ({ params }) {
if (params.id === '123') {
$sentry.captureException(Error('Test error'))
}
try {
someFunctionThatCanThrowError()
} catch (e) {
$sentry.captureException(e)
}
}777genius