Download ADOOR_ACE/node_modules/chpr-logger/serializers/err.js from thisisAce/adoor-store: direct link, hf CLI and curl.
- Browser
- Download file 423 Bytes
-
https://huggingface.co/thisisAce/adoor-store/resolve/main/ADOOR_ACE/node_modules/chpr-logger/serializers/err.js
- Command line
-
hf download hf://thisisAce/adoor-store/ADOOR_ACE/node_modules/chpr-logger/serializers/err.js
-
curl -L -o err.js https://huggingface.co/thisisAce/adoor-store/resolve/main/ADOOR_ACE/node_modules/chpr-logger/serializers/err.js
423 Bytes
| ; | |
| 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, | |
| }; | |