Skip to content

Coerces error-like objects (with stack properties) into strings #866

Closed
@benvinegar

Description

@benvinegar

Raven.js checks if objects passed to Raven.captureException are errors using our isError helper, which is pretty strict: it basically checks if the object in question "descends" from Error using an instanceof check.

But there are some error-like objects out there (e.g. Ember.js) that have .stack properties but do not pass the instanceof Error check. We should probably handle these too.

See: ember-cli-sentry/ember-cli-sentry#72

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions