Browse Source

fix: error page pagemeta title

pull/760/head
Nicolas Giard 5 years ago
committed by Nick
parent
commit
5f18c71ef2
1 changed files with 1 additions and 1 deletions
  1. 2
      server/master.js

2
server/master.js

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

Loading…
Cancel
Save