fix: error page pagemeta title
This commit is contained in:
parent
72253f9cb5
commit
5f18c71ef2
@ -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 : {}
|
||||
|
Loading…
Reference in New Issue
Block a user