From bc18bcddc6cfbc9cbb2b824e76fd3ce4ee486bf2 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 16 Oct 2005 15:15:32 +0100 Subject: add some RPC error reporting --- functions.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'functions.js') 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; -- cgit v1.2.3