diff --git a/public_html/js/Presenters/TagPresenter.js b/public_html/js/Presenters/TagPresenter.js index e4f8bc26..054ee2c9 100644 --- a/public_html/js/Presenters/TagPresenter.js +++ b/public_html/js/Presenters/TagPresenter.js @@ -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.'); }); }