Is there a hook for expected errors in Sveltekit? #14660
Unanswered
alexbjorlig
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In our codebase we have adopted the
error(401, 'must authenticate')pattern in many places.But when developing locally, it would be great to have a hook for expected errors, where I could log from where the error was thrown.
Is this possible somehow? As I can read here handleError is only called with unexpected errors.
Thanks 🙏
Beta Was this translation helpful? Give feedback.
All reactions