Skip to content

Commit

Permalink
remove extra from error object
Browse files Browse the repository at this point in the history
  • Loading branch information
hayk-simonyan committed Nov 26, 2024
1 parent 4915d28 commit 9fe7730
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/error/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

const Promise = require('promiscuous');
const Config = require('../configuration');
const _ = require('lodash');

let tags = [];

Expand Down Expand Up @@ -32,8 +31,7 @@ function report(error, additionalTags, extra) {
// Need this wrapping so that our internal implementation can safely throw errors
return new Promise(function(resolve) {
console.log(error.nativeError ? error.nativeError : error); //eslint-disable-line no-console
error.extra = _.merge(extra || {}, error.extra);
console.log(error.extra); //eslint-disable-line no-console
console.log(extra); //eslint-disable-line no-console
resolve(error);
});
}).catch(function(err) {
Expand Down

0 comments on commit 9fe7730

Please sign in to comment.