Skip to content

fix(sveltekit): Avoid capturing "Not Found" errors in server handleError wrapper #7898

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 19, 2023

Conversation

Lms24
Copy link
Member

@Lms24 Lms24 commented Apr 19, 2023

Incoming page load requests on the server side for unknown/invalid routes will throw a Error: Not found: /unknown/route error in the server handleError hook. In our wrapper, we don't want to catch these errors (similarly to 404 errors in the wrapLoadWithSentry wrapper).

@Lms24 Lms24 requested review from a team, mydea and AbhiPrasad and removed request for a team April 19, 2023 09:27
@Lms24 Lms24 changed the title fix(sveltekit): Don't capture "Not Found" errors in server handleError wrapper fix(sveltekit): Avoid capturing "Not Found" errors in server handleError wrapper Apr 19, 2023
@Lms24 Lms24 merged commit f6eccc4 into develop Apr 19, 2023
@Lms24 Lms24 deleted the lms/sveltekit-fix-errorhandler-not-found branch April 19, 2023 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants