Changed tag presenter to show meaningful errors
This commit is contained in:
parent
7939aa5431
commit
4db5bd8007
1 changed files with 1 additions and 2 deletions
|
@ -106,8 +106,7 @@ App.Presenters.TagPresenter = function(
|
|||
render();
|
||||
renderPosts(posts);
|
||||
}).fail(function(response) {
|
||||
console.log(response);
|
||||
window.alert('An error occurred');
|
||||
window.alert(response.json && response.json.error || 'An error occured.');
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue