diff --git a/js/models/messages.js b/js/models/messages.js index 97e5b105478..03d78649fac 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; })