]> git.wh0rd.org Git - tt-rss.git/commitdiff
make invalid object received headlines appear less
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 26 Dec 2012 14:24:14 +0000 (18:24 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 26 Dec 2012 14:24:14 +0000 (18:24 +0400)
js/viewfeed.js

index 45e1a54e229cd3210dd5d47b1d02bc4dea8cf02d..b839dfd613823c74f9392b095d968e1dc8f7297f 100644 (file)
@@ -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', "<div class='whiteBox'>" +
                                        __('Could not update headlines (invalid object received - see error console for details)') +
                                        "</div>");
+               } else {
+                       notify_error("Error communicating with server.");
                }
 
                _infscroll_request_sent = 0;