Replies: 1 comment 2 replies
-
You’re right. To put it simply: if an error occurs during page rendering (load function / page / layout), Kit will render the nearest However, if the error occurs in Endpoints return json if the request’s |
Beta Was this translation helpful? Give feedback.
2 replies
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.
-
So,
expected errors in server.js -> return data with error
unexpected errors in server.js -> handleError in hooks.server.js
expected errors in page.server.js -> show +error.js
unexpected errors in page.server.js -> handleError in hooks.server.js
Am I right? This should be a table in docs I guess because it'll save a lot of debugging time.
Beta Was this translation helpful? Give feedback.
All reactions