Fix saving TypeErrors
// FREEBIE
This commit is contained in:
parent
e842ade196
commit
e68b84ad9a
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@
|
|||
console.log(e.reason, e.stack);
|
||||
});
|
||||
errors = errors.map(function(e) {
|
||||
if (e.constructor === Error) {
|
||||
if (e.constructor === Error || e.constructor === TypeError) {
|
||||
return _.pick(e, 'name', 'message', 'code', 'number', 'reason');
|
||||
}
|
||||
return e;
|
||||
|
|
Loading…
Reference in a new issue