Skip to content

Commit

Permalink
fix: error page pagemeta title
Browse files Browse the repository at this point in the history
  • Loading branch information
NGPixel committed Feb 2, 2019
1 parent 72253f9 commit 5f18c71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/master.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 : {}
Expand Down

0 comments on commit 5f18c71

Please sign in to comment.