Skip to content
This repository has been archived by the owner on Nov 18, 2021. It is now read-only.

Custom error classes reported as [object Object] #21

Open
kornelski opened this issue Oct 22, 2015 · 1 comment
Open

Custom error classes reported as [object Object] #21

kornelski opened this issue Oct 22, 2015 · 1 comment
Labels
feature New feature request

Comments

@kornelski
Copy link
Contributor

function CustomError() {this.reason = "whoops"}

require('o-errors').report(new CustomError());

In Sentry the error message is "[object Object]".

I'd expect "CustomError" (.constructor.name) or {"reason":"whoops"} (JSON representation) instead.

@AlbertoElias AlbertoElias self-assigned this Oct 29, 2015
@kornelski
Copy link
Contributor Author

I've worked around this in the webapp for now (I'm using transform callback to extract some message and move the rest to the context obj)

@onishiweb onishiweb added the feature New feature request label Mar 17, 2016
@JakeChampion JakeChampion reopened this Aug 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature New feature request
Projects
None yet
Development

No branches or pull requests

5 participants