Skip to content

What to report when throwing an non-error value #5131

Description

@smeubank

Problem Statement

Stemming from a discussion in discord and subsequent conversations with Vercel:

image

this can be caused by the throw null throw 0 throw undefined which would cause this line if (err) to not proceed

That’s why we’re stripping the confusing error message we were adding, but what’s your recommendation ?

Solution Brainstorm

Vercel has fixed to remove the unhelpful error in the example repo already
vercel/next.js#36902

we could do a captureMessage

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions