0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 14:12:40 +00:00

adress app.js changes requested

This commit is contained in:
Víctor Losada Hernández
2024-08-31 22:08:21 +02:00
parent a0010c9c84
commit 8d2a9ed9cb

View File

@@ -503,11 +503,6 @@ app.use(async (err, req, res, next)=>{
res.status(err.status || err.response?.status || 500).send(err);
return;
}
if(err.originalUrl?.startsWith('/vault/')) {
// console.log('vault error');
res.status(err.status || err.response?.status || 500).send(err);
return;
}
// console.log('non-API error');
const status = err.status || err.code || 500;