Explorar el Código

fix: error page pagemeta title

Nicolas Giard hace 6 años
padre
commit
5f18c71ef2
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      server/master.js

+ 1 - 1
server/master.js

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