Replies: 1 comment 1 reply
-
I've tested and they seem to both work together. What type of error was thrown is / what type of load function you are using? |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Hi,
it took me some time to understand why my client
handleError
function doesn't log my error that was thrown from a load function. I thought that my serverhandleError
hook acts a default error handler for all server related errors (+server files) and the clienthandleError
for all client related errors (+page,+layout files).But it seems that they are mutually exclusive. Because if I have a server
handleError
function defined, I cannot get the clienthandleError
to executed, even if I throw an error in a component or layout. So the question is can they be used at the same time?Best regards,
Christian
Beta Was this translation helpful? Give feedback.
All reactions