From 4a5b35634f18b92c3fde42f013a940991b5d0edb Mon Sep 17 00:00:00 2001 From: Simon Holthausen Date: Wed, 7 Sep 2022 23:54:48 +0200 Subject: [PATCH] [breaking] change sveltekit.message to sveltekit.error.message Closes #6645 --- .changeset/forty-news-kiss.md | 5 +++++ documentation/docs/01-project-structure.md | 2 +- packages/kit/src/core/config/default-error.html | 4 ++-- packages/kit/src/exports/vite/build/build_server.js | 2 +- packages/kit/src/exports/vite/dev/index.js | 2 +- packages/kit/test/apps/basics/src/error.html | 2 +- 6 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 .changeset/forty-news-kiss.md 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 @@ - %sveltekit.message% + %sveltekit.error.message%