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:
@@ -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'));
|
||||
|
||||
Reference in New Issue
Block a user