1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 22:45:56 +00:00

subscribetofeed: handle server error/wrong output properly

This commit is contained in:
Andrew Dolgov
2010-11-13 19:35:50 +03:00
parent 90c9c16f0e
commit d3204726a5

View File

@@ -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'));