Skip to content

Exceptions thrown in errorHandler halt app #6714

Closed
@dts

Description

@dts

Version

2.4.4

Reproduction link

https://jsfiddle.net/qok5vcnf/1/

Steps to reproduce

Add an errorHandler that throws an exception, and notice that the app halts badly.

What is expected?

Exceptions thrown from errorHandlers should use the console to print something, or fail silently.

What is actually happening?

The whole app rendering halts.


Was using the raven-js plugin for Vue, which triggers this behavior. I have filed an issue over there with my feedback (getsentry/sentry-javascript#1061), but I thought it might save some future developers time to not fail quite so catastrophically in this case.

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