From d3204726a56471bf8f7add5fd38db6dd149fb022 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 13 Nov 2010 19:35:50 +0300 Subject: [PATCH] subscribetofeed: handle server error/wrong output properly --- functions.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/functions.js b/functions.js index d798f6bf..d2618c98 100644 --- a/functions.js +++ b/functions.js @@ -585,8 +585,11 @@ function subscribeToFeed() { try { - if (!transport.responseXML) + if (!transport.responseXML) { console.log(transport.responseText); + alert(__("Server error while trying to subscribe to specified feed.")); + return; + } var result = transport.responseXML.getElementsByTagName('result')[0]; var rc = parseInt(result.getAttribute('code')); -- 2.39.5