Save ReferenceErrors on messages
// FREEBIE
This commit is contained in:
parent
765668b3d3
commit
4615e730ca
1 changed files with 3 additions and 1 deletions
|
@ -159,7 +159,9 @@
|
|||
console.log(e.reason, e.stack);
|
||||
});
|
||||
errors = errors.map(function(e) {
|
||||
if (e.constructor === Error || e.constructor === TypeError) {
|
||||
if (e.constructor === Error ||
|
||||
e.constructor === TypeError ||
|
||||
e.constructor === ReferenceError) {
|
||||
return _.pick(e, 'name', 'message', 'code', 'number', 'reason');
|
||||
}
|
||||
return e;
|
||||
|
|
Loading…
Add table
Reference in a new issue