-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feat(sveltekit): Add server-side handleError
wrapper
#7411
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
Conversation
size-limit report 📦
|
In e9d8904 I added two additional changes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work! 🔥
@@ -5,7 +5,7 @@ import { Scope } from '@sentry/svelte'; | |||
// eslint-disable-next-line import/no-unresolved | |||
import type { HandleClientError, NavigationEvent } from '@sveltejs/kit'; | |||
|
|||
import { wrapHandleError } from '../../src/client/handleError'; | |||
import { wrapHandleErrorWithSentry } from '../../src/client/handleError'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
l: this needs to be updated I guess 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes! good catch.
ref #7403
Adds a wrapper for the server-side
handleError
hook.Usage is like the following:
In #7406 I introduced this functionality on the client side.