mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-24 16:22:44 +00:00
add error logging on admin route
This commit is contained in:
@@ -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