1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
unleash.unleash/lib/routes/route-utils.js

11 lines
211 B
JavaScript
Raw Normal View History

2016-12-04 14:09:37 +01:00
'use strict';
2016-12-01 17:15:55 +01:00
const logger = require('../logger');
const catchLogAndSendErrorResponse = (err, res) => {
logger.error(err);
res.status(500).end();
2016-12-04 14:09:37 +01:00
};
2016-12-01 17:15:55 +01:00
2016-12-04 14:09:37 +01:00
module.exports = { catchLogAndSendErrorResponse };