Handling errors thrown from +page.svelte #9428
-
|
Manual explains how to throw an error from load in Is it possible to handle errors in same way from JS in With
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
You can try calling Otherwise, a more convenient method could be introduced to achieve this. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you. Passing data from Consider converting this discussion to issue to add standard way to handle throws from |
Beta Was this translation helpful? Give feedback.
You can try calling
goto()to the current page but with aURLSearchParamthat is checked in theloadfunction, then throw an error.Otherwise, a more convenient method could be introduced to achieve this.