mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-28 00:06:53 +01:00
11 lines
214 B
JavaScript
11 lines
214 B
JavaScript
'use strict';
|
|
|
|
const logger = require('../../logger');
|
|
|
|
const catchLogAndSendErrorResponse = (err, res) => {
|
|
logger.error(err);
|
|
res.status(500).end();
|
|
};
|
|
|
|
module.exports = { catchLogAndSendErrorResponse };
|