From dfd423a18841b3245771b8443b9bef3c89b91381 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Tue, 7 May 2013 10:33:04 -0400 Subject: [PATCH] Thanks JSHINT! --- app/assets/javascripts/discourse/models/composer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/models/composer.js b/app/assets/javascripts/discourse/models/composer.js index 09dbaabd8..0d82a8473 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')); }