mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
Thanks JSHINT!
This commit is contained in:
parent
be191a95da
commit
dfd423a188
1 changed files with 1 additions and 1 deletions
|
@ -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'));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue