From: Andrew Dolgov Date: Wed, 26 Dec 2012 14:24:14 +0000 (+0400) Subject: make invalid object received headlines appear less X-Git-Tag: 1.7.0~111 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=0cd35af0ba49d8286f55b36756b0a896dbd5eef8;p=tt-rss.git make invalid object received headlines appear less --- diff --git a/js/viewfeed.js b/js/viewfeed.js index 45e1a54e..b839dfd6 100644 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -202,11 +202,13 @@ function headlines_callback2(transport, offset, background, infscroll_req) { else request_counters(); - } else { + } else if (transport.responseText) { console.error("Invalid object received: " + transport.responseText); dijit.byId("headlines-frame").attr('content', "
" + __('Could not update headlines (invalid object received - see error console for details)') + "
"); + } else { + notify_error("Error communicating with server."); } _infscroll_request_sent = 0;