fix: error page pagemeta title

This commit is contained in:
Nicolas Giard 2019-01-25 17:30:31 -05:00 committed by Nick
parent 72253f9cb5
commit 5f18c71ef2

View File

@ -153,7 +153,7 @@ module.exports = async () => {
app.use((err, req, res, next) => {
res.status(err.status || 500)
res.locals.pageMeta.title = 'Error'
_.set(res.locals, 'pageMeta.title', 'Error')
res.render('error', {
message: err.message,
error: WIKI.IS_DEBUG ? err : {}