Save outgoing error codes when messages fail
// FREEBIE
This commit is contained in:
parent
a802322d44
commit
7d6adc4879
1 changed files with 1 additions and 1 deletions
|
@ -153,7 +153,7 @@
|
||||||
this.save({
|
this.save({
|
||||||
errors : errors.map(function(e) {
|
errors : errors.map(function(e) {
|
||||||
if (e.constructor === Error) {
|
if (e.constructor === Error) {
|
||||||
return _.pick(e, 'name', 'message', 'number', 'reason');
|
return _.pick(e, 'name', 'message', 'code', 'number', 'reason');
|
||||||
}
|
}
|
||||||
return e;
|
return e;
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue