nci/resources/errorHandler.js

10 lines
205 B
JavaScript
Raw Normal View History

2015-07-05 17:18:51 +00:00
'use strict';
module.exports = function(err, req, res, next) {
console.error(
'Error is occurred during requesting ' +
req.resource.namespace.name + ' ' + req.action + ':',
err.stack || err
);
};