Skip to content

SvelteKit 3: handleErrorWithSentry captures expected errors #23650

Description

@chargome

SvelteKit 3 changed the handleError input to { kind, error, event }: status moved onto the error, and expected errors thrown with error(...) now reach the hook too.

handleErrorWithSentry still reads the old status, so on Kit 3 it captures framework 404s and every intentional error(400, …), and logs a SvelteKit deprecation warning per error in dev.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions