mirror of
https://gitlab.silvrtree.co.uk/martind2000/nci.git
synced 2025-01-11 16:45:08 +00:00
12 lines
271 B
JavaScript
12 lines
271 B
JavaScript
'use strict';
|
|
|
|
var logger = require('../lib/logger')('resources error handler');
|
|
|
|
module.exports = function(err, req, res, next) {
|
|
logger.error(
|
|
'Error is occurred during requesting ' +
|
|
req.resource.namespace.name + ' ' + req.action + ':',
|
|
err.stack || err
|
|
);
|
|
};
|