mirror of
https://github.com/stronk-dev/LivepeerEvents.git
synced 2025-07-05 02:35:09 +02:00
Fix error logger
This commit is contained in:
parent
accdac875c
commit
0f9f5e3f5c
@ -77,7 +77,10 @@ const { NODE_ENV: mode } = process.env;
|
||||
console.log(`${err.status || 500} - ${err.message} - ${req.originalUrl} - ${req.method} - ${req.ip}`);
|
||||
// Render the error page
|
||||
res.status(err.status || 500);
|
||||
res.render('error');
|
||||
res.json({
|
||||
message: err.message,
|
||||
error: err
|
||||
});
|
||||
});
|
||||
|
||||
// Start listening on the defined port
|
||||
|
Loading…
x
Reference in New Issue
Block a user