diff options
author | Andrew Dolgov <[email protected]> | 2005-10-16 15:15:32 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2005-10-16 15:15:32 +0100 |
commit | bc18bcddc6cfbc9cbb2b824e76fd3ce4ee486bf2 (patch) | |
tree | a9c598186662d5aed9e34d102d7731884285f58d /tt-rss.js | |
parent | 828a8ecc9a3028b53daf4644ef41479c47fbce20 (diff) |
add some RPC error reporting
Diffstat (limited to 'tt-rss.js')
-rw-r--r-- | tt-rss.js | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -70,8 +70,18 @@ function refetch_callback() { document.title = "Tiny Tiny RSS"; notify("All feeds updated."); + if (!xmlhttp.responseXML) { + notify("refetch_callback: backend did not return valid XML"); + return; + } + var reply = xmlhttp.responseXML.firstChild; + if (!reply) { + notify("refetch_callback: backend did not return expected XML object"); + return; + } + var f_document = window.frames["feeds-frame"].document; for (var l = 0; l < reply.childNodes.length; l++) { |