fix(errors): dedicated 404 errors

This commit is contained in:
Benedikt Rötsch
2018-02-14 10:25:01 +01:00
committed by Benedikt Rötsch
parent 9ca77e4e9c
commit 4cdfea0b3e
5 changed files with 40 additions and 21 deletions

View File

@@ -6,11 +6,12 @@ block content
.layout-centered
.error
h1 #{translate('somethingWentWrongLabel', currentLocale.code)} (#{error.status})
p #{error.message}
h2 #{translate('tryLabel', currentLocale.code)}:
ul
case error.status
when 404
li #{translate('error404Route', currentLocale.code)}
li #{translate('notFoundErrorLabel', currentLocale.code)}
li #{translate('draftOrPublishedErrorLabel', currentLocale.code)}
when 400
li #{translate('contentModelChangedErrorLabel', currentLocale.code)}