mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-22 03:37:04 +00:00
add error logging on admin route
This commit is contained in:
1 parent
760c1a9e8c
commit
46882c4fb4
1 file changed
+4
-1
+4
-1
@@ -159,7 +159,10 @@ router.get('/admin', mw.adminOnly, (req, res)=>{
|
||||
url : req.originalUrl
|
||||
})
|
||||
.then((page)=>res.send(page))
|
||||
.catch((err)=>res.sendStatus(500));
|
||||
.catch((err)=> {
|
||||
console.log(err)
|
||||
res.sendStatus(500)
|
||||
})
|
||||
});
|
||||
|
||||
module.exports = router;
|
||||
Reference in new issue
Block a user