mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-24 20:42:43 +00:00
Add originalUrl to error object
This commit is contained in:
@@ -472,8 +472,9 @@ const getPureError = (error)=>{
|
||||
};
|
||||
|
||||
app.use(async (err, req, res, next)=>{
|
||||
const status = err.status || err.code || 500;
|
||||
err.originalUrl = req.originalUrl;
|
||||
console.error(err);
|
||||
const status = err.status || err.code || 500;
|
||||
|
||||
req.ogMeta = { ...defaultMetaTags,
|
||||
title : 'Error Page',
|
||||
|
||||
Reference in New Issue
Block a user