mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-01 00:08:27 +01:00
8 lines
194 B
JavaScript
8 lines
194 B
JavaScript
const logger = require('../logger');
|
|
|
|
const catchLogAndSendErrorResponse = (err, res) => {
|
|
logger.error(err);
|
|
res.status(500).end();
|
|
}
|
|
|
|
module.exports = { catchLogAndSendErrorResponse }; |