|
@@ -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 : {}
|