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 /functions.js | |
parent | 828a8ecc9a3028b53daf4644ef41479c47fbce20 (diff) |
add some RPC error reporting
Diffstat (limited to 'functions.js')
-rw-r--r-- | functions.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/functions.js b/functions.js index d79490a41..323d7d8af 100644 --- a/functions.js +++ b/functions.js @@ -307,6 +307,12 @@ if (!xmlhttp_rpc && typeof XMLHttpRequest!='undefined') { function label_counters_callback() { if (xmlhttp_rpc.readyState == 4) { + + if (!xmlhttp.responseXML) { + notify("label_counters_callback: backend did not return valid XML"); + return; + } + var reply = xmlhttp_rpc.responseXML.firstChild; var f_document = parent.frames["feeds-frame"].document; |