feat(errors): new error page copy
This commit is contained in:
committed by
Benedikt Rötsch
parent
3c9089af98
commit
5e55d7b5b4
2
app.js
2
app.js
@@ -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)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user