From 7d6adc4879fef96fdfdac6b7c5f98a2c7cb25282 Mon Sep 17 00:00:00 2001 From: lilia Date: Wed, 30 Sep 2015 17:13:57 -0700 Subject: [PATCH] Save outgoing error codes when messages fail // FREEBIE --- js/models/messages.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/models/messages.js b/js/models/messages.js index 97e5b105..03d78649 100644 --- a/js/models/messages.js +++ b/js/models/messages.js @@ -153,7 +153,7 @@ this.save({ errors : errors.map(function(e) { if (e.constructor === Error) { - return _.pick(e, 'name', 'message', 'number', 'reason'); + return _.pick(e, 'name', 'message', 'code', 'number', 'reason'); } return e; })