mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-06 03:32:40 +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
|
url : req.originalUrl
|
||||||
})
|
})
|
||||||
.then((page)=>res.send(page))
|
.then((page)=>res.send(page))
|
||||||
.catch((err)=>res.sendStatus(500));
|
.catch((err)=> {
|
||||||
|
console.log(err)
|
||||||
|
res.sendStatus(500)
|
||||||
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
module.exports = router;
|
module.exports = router;
|
||||||
|
|||||||
Reference in New Issue
Block a user