diff --git a/static/quiz_item.coffee b/static/quiz_item.coffee index bd76fce..c1cebcd 100644 --- a/static/quiz_item.coffee +++ b/static/quiz_item.coffee @@ -140,9 +140,9 @@ $("#api-refresh").click (e) -> $("#api-refresh").attr('data-original-title', "Last API Refresh:
" + retData.last_refresh + "
Click to refresh"); $('#success-area').show(); - ).fail(() -> + ).fail((xhr, textStatus) -> $('#error-area').show(); - $('#error-text').text("Cannot refresh API. Try again later.") + $('#error-text').text("Cannot refresh API. Try again later. " + textStatus) $("#api-refresh").find('img').removeClass('glyphicon-spin'); );