Thanks JSHINT!

This commit is contained in:
Robin Ward 2013-05-07 10:33:04 -04:00
parent be191a95da
commit dfd423a188
1 changed files with 1 additions and 1 deletions

View File

@ -312,7 +312,7 @@ Discourse.Composer = Discourse.Model.extend({
}, function(error) {
var response = $.parseJSON(error.responseText);
if (response && response.errors) {
promise.reject(errors[0]);
promise.reject(response.errors[0]);
} else {
promise.reject(Em.String.i18n('generic_error'));
}