mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 23:15:57 +00:00
check for backend-returned fatal errors in major callbacks
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user