feat(errors): new error page copy

This commit is contained in:
Benedikt Rötsch
2018-02-14 16:15:32 +01:00
committed by Benedikt Rötsch
parent 3c9089af98
commit 5e55d7b5b4
5 changed files with 47 additions and 47 deletions

2
app.js
View File

@@ -136,7 +136,7 @@ app.use('/', routes)
// Catch 404 and forward to error handler
app.use(function (request, response, next) {
const err = new Error(translate('error404Route', response.currentLocale))
const err = new Error(translate('errorMessage404Route', response.currentLocale))
err.status = 404
next(err)
})