From a23f25ecfe8971000ccb862ea2bbabfea7b8f377 Mon Sep 17 00:00:00 2001 From: Ruben Verborgh Date: Wed, 14 Jul 2021 15:56:56 +0100 Subject: [PATCH] refactor: Allow error descriptions to change the title. --- templates/error/descriptions/E0001.md | 2 +- templates/error/main.md | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/templates/error/descriptions/E0001.md b/templates/error/descriptions/E0001.md index 6831798bc..95d394833 100644 --- a/templates/error/descriptions/E0001.md +++ b/templates/error/descriptions/E0001.md @@ -1,4 +1,4 @@ -### Requests to `{{ path }}` are not supported +# Requests to `{{ path }}` are not supported The Community Solid Server received a request for `{{ path }}`, which is not configured. Here are some things you can try to fix this: - Have you started the server with the right hostname? diff --git a/templates/error/main.md b/templates/error/main.md index 3e30f35f3..54e946416 100644 --- a/templates/error/main.md +++ b/templates/error/main.md @@ -1,11 +1,15 @@ -# {{ name }} - {{#if description}} {{{ description }}} +{{else}} +# {{ name }} {{/if}} ## Technical details +{{#if message}} {{ message }} +{{else}} +_No further details available._ +{{/if}} {{#if stack}} ```