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();
|
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');
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue