Open kornelski opened 8 years ago
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.
.constructor.name
{"reason":"whoops"}
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)
In Sentry the error message is "[object Object]".
I'd expect "CustomError" (
.constructor.name
) or{"reason":"whoops"}
(JSON representation) instead.