Changed tag presenter to show meaningful errors

This commit is contained in:
Marcin Kurczewski 2014-10-18 14:27:36 +02:00
parent 7939aa5431
commit 4db5bd8007

View file

@ -106,8 +106,7 @@ App.Presenters.TagPresenter = function(
render(); render();
renderPosts(posts); renderPosts(posts);
}).fail(function(response) { }).fail(function(response) {
console.log(response); window.alert(response.json && response.json.error || 'An error occured.');
window.alert('An error occurred');
}); });
} }