docs: update error handling docs - #16749
Conversation
|
Install the latest version of pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/181bcfefa57920985c1b6c49299009d55d42c17bOpen in |
|
| This function is called for every error thrown while loading, rendering, or responding to a request. This allows for two things: | ||
|
|
||
| - you can log the error | ||
| - you can generate a custom representation of the error that is safe to show to users, omitting sensitive details like messages and stack traces. The returned value becomes the value of `page.error`. |
There was a problem hiding this comment.
this used to be true, but not any more since handleError applies to errors inside the user's boundaries
mostly just tweaking the order — it's weird to say 'An unknown error is any other exception' for anything but the last mentioned category. also adds a mention of
validationerrors