Skip to content

Allow to call original errorHandler when custom one defined #8433

@ArmorDarks

Description

@ArmorDarks

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions