diff --git a/app/assets/javascripts/discourse/models/composer.js b/app/assets/javascripts/discourse/models/composer.js index 09dbaabd869..0d82a84730d 100644 --- a/app/assets/javascripts/discourse/models/composer.js +++ b/app/assets/javascripts/discourse/models/composer.js @@ -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')); }