-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
Open
Labels
Description
What problem does this feature solve?
When custom Vue.config.errorHandler defined by the user, it will stop firing original logError .
The problem is that there is no straight way to recreate logError behavior in custom Vue.config.errorHandler without requiring some Vue's internals.
This issue is partially related to raven-js#1416, which defines custom errorHandler... which prevents Vue from login errors to the console.
What does the proposed API look like?
I think Vue should by default expose original errorHandler under Vue.config.errorHandler. In other words, Vue.config.errorHandler shouldn't be undefined by default.
If the user would like to override errorHandler, he will reassign it. Otherwise, it would be possible to save original Vue.config.errorHandler into some variable and call it within custom errorHandler.
ernestoalejo, erfanimani, matt4530, DelfsEngineering, lfkwtz and 29 more