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.
SvelteKit 3 changed the
handleErrorinput to{ kind, error, event }:statusmoved onto the error, and expected errors thrown witherror(...)now reach the hook too.handleErrorWithSentrystill reads the oldstatus, so on Kit 3 it captures framework 404s and every intentionalerror(400, …), and logs a SvelteKit deprecation warning per error in dev.