From fa460a2989cb7646937a0827dfb3f4f00ce0dcac Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Thu, 28 Jun 2018 11:48:18 -0400 Subject: [PATCH 1/4] replace 4xx and 5xx with _error, per 0.14 --- routes/5xx.html | 22 ---------------------- routes/{4xx.html => _error.html} | 8 +++----- routes/blog/[slug].html | 17 ++++++++++------- routes/blog/[slug].json.js | 12 +++++++++--- 4 files changed, 22 insertions(+), 37 deletions(-) delete mode 100644 routes/5xx.html rename routes/{4xx.html => _error.html} (66%) diff --git a/routes/5xx.html b/routes/5xx.html deleted file mode 100644 index 7f008e0..0000000 --- a/routes/5xx.html +++ /dev/null @@ -1,22 +0,0 @@ - - Internal server error - - -

Internal server error

- - \ No newline at end of file diff --git a/routes/4xx.html b/routes/_error.html similarity index 66% rename from routes/4xx.html rename to routes/_error.html index 9ff1ae7..72b3395 100644 --- a/routes/4xx.html +++ b/routes/_error.html @@ -1,20 +1,18 @@ - Not found + {status} -

Not found

+

{status}

-

Please check the URL

+

{error.message}