0
0
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:
Víctor Losada Hernández
2024-08-29 00:00:55 +02:00
parent 760c1a9e8c
commit 46882c4fb4

View File

@@ -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;