Skip to content

Commit

Permalink
Update documentation/docs/03-routing.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris authored Aug 30, 2022
1 parent 1871151 commit 2a3e2af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion documentation/docs/03-routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ If an error occurs during `load`, SvelteKit will render a default error page. Yo
<h1>{$page.status}: {$page.error.message}</h1>
```
SvelteKit will 'walk up the tree' looking for the closest error boundary — if the file above didn't exist it would try `src/routes/blog/+error.svelte` and `src/routes/+error.svelte` before rendering the default error page. If that fails, the contents of a static error page (`src/error.html` by default) will be rendered instead.
SvelteKit will 'walk up the tree' looking for the closest error boundary — if the file above didn't exist it would try `src/routes/blog/+error.svelte` and `src/routes/+error.svelte` before rendering the default error page. If _that_ fails, SvelteKit will bail out and render a static fallback error page, which you can customise by creating a `src/error.html` file.
### +layout
Expand Down

0 comments on commit 2a3e2af

Please sign in to comment.