Save outgoing error codes when messages fail

// FREEBIE
This commit is contained in:
lilia 2015-09-30 17:13:57 -07:00
parent a802322d44
commit 7d6adc4879

View file

@ -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;
}) })