From 2184738a443e3fa62ea197f9b33b174eff8cf41d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 31 Jan 2009 23:03:40 +0300 Subject: check for backend-returned fatal errors in major callbacks --- viewfeed.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'viewfeed.js') diff --git a/viewfeed.js b/viewfeed.js index 52f0e8add..0f5345b9b 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -67,6 +67,8 @@ function headlines_callback2(transport, feed_cur_page) { debug("headlines_callback2 [page=" + feed_cur_page + "]"); + if (!transport_error_check(transport)) return; + clean_feed_selections(); var is_cat = false; @@ -327,6 +329,8 @@ function article_callback2(transport, id, feed_id) { if (transport.responseXML) { + if (!transport_error_check(transport)) return; + debug("looking for articles to cache..."); var articles = transport.responseXML.getElementsByTagName("article"); -- cgit v1.2.3