fix(errors): only remove stack from error in production

This commit is contained in:
Benedikt Rötsch
2018-02-20 10:25:54 +01:00
committed by Benedikt Rötsch
parent c36d98e5bb
commit cdbfa96426
2 changed files with 5 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ block content
.layout-centered
.error
h1 #{translate('somethingWentWrongLabel', currentLocale.code)} (#{error.status})
// We use the last line to have a human readable output for pug error messages
//- We use the last line to have a human readable output for pug error messages
p #{error.message.split('\n').pop()}
h2 #{translate('hintsLabel', currentLocale.code)}