3v324v23's picture
Add PNG files and track with Git LFS
befd7da
Raw History Blame Contribute Delete
423 Bytes
'use strict';
const _ = require('lodash');
const bunyan = require('bunyan');
/**
* Serialize an Error object.
*
* Overrides the default bunyan error serializer, only adds in the result the
* error enumerable properties.
*
* @param {Error} error The error
* @returns {Object} The formatted error.
*/
function err(error) {
return _.assign(bunyan.stdSerializers.err(error), error);
}
module.exports = {
err,
};