FIX: Missing error message when bookmark rate limit is hit.
This commit is contained in:
parent
edcc43d76a
commit
fc87e71218
|
@ -233,8 +233,8 @@ export default Ember.Controller.extend(SelectedPostsCount, BufferedContent, {
|
|||
}
|
||||
if (post) {
|
||||
return post.toggleBookmark().catch(function(error) {
|
||||
if (error && error.responseText) {
|
||||
bootbox.alert($.parseJSON(error.responseText).errors[0]);
|
||||
if (error && error.jqXHR && error.jqXHR.responseText) {
|
||||
bootbox.alert($.parseJSON(error.jqXHR.responseText).errors[0]);
|
||||
} else {
|
||||
bootbox.alert(I18n.t('generic_error'));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue