Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass raw err to errorHandler callback #10

Closed
mdreizin opened this issue Jan 18, 2017 · 2 comments
Closed

Pass raw err to errorHandler callback #10

mdreizin opened this issue Jan 18, 2017 · 2 comments

Comments

@mdreizin
Copy link

Hello,

It would be nice to use raw err in errorHandler callback:

Vue.use(AsyncComputed, {
errorHandler(err) {
console.log('Hey, an error!')
console.log('---')
console.log(err.message)
}
)

@foxbenjaminfox
Copy link
Owner

I've added a new option, useRawError. If you pass a truthy value for that option it will pass the raw error object to the error handler.

@mdreizin
Copy link
Author

@foxbenjaminfox Thanks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants