diff --git a/.changeset/forty-news-kiss.md b/.changeset/forty-news-kiss.md new file mode 100644 index 000000000000..207c26150d60 --- /dev/null +++ b/.changeset/forty-news-kiss.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': patch +--- + +[breaking] change sveltekit.message to sveltekit.error.message diff --git a/documentation/docs/01-project-structure.md b/documentation/docs/01-project-structure.md index d93e514fd012..f035f7368a8c 100644 --- a/documentation/docs/01-project-structure.md +++ b/documentation/docs/01-project-structure.md @@ -44,7 +44,7 @@ The `src` directory contains the meat of your project. - `%sveltekit.nonce%` — a [CSP](/docs/configuration#csp) nonce for manually included links and scripts, if used - `error.html` (optional) is the page that is rendered when everything else fails. It can contain the following placeholders: - `%sveltekit.status%` — the HTTP status - - `%sveltekit.message%` — the error message + - `%sveltekit.error.message%` — the error message - `hooks.js` (optional) contains your application's [hooks](/docs/hooks) - `service-worker.js` (optional) contains your [service worker](/docs/service-workers) diff --git a/packages/kit/src/core/config/default-error.html b/packages/kit/src/core/config/default-error.html index eae4dbc89673..665b091bcf15 100644 --- a/packages/kit/src/core/config/default-error.html +++ b/packages/kit/src/core/config/default-error.html @@ -2,7 +2,7 @@
-