FIX: missing error message when editing topics

This commit is contained in:
Sam 2015-08-11 16:32:43 +10:00
parent 56f12cd9f1
commit ccc943c118
1 changed files with 2 additions and 2 deletions

View File

@ -286,8 +286,8 @@ export default ObjectController.extend(SelectedPostsCount, BufferedContent, {
self.rollbackBuffer();
self.set('editingTopic', false);
}).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'));
}