mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 21:25:55 +00:00
subscribetofeed: handle server error/wrong output properly
This commit is contained in:
@@ -585,8 +585,11 @@ function subscribeToFeed() {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
if (!transport.responseXML)
|
if (!transport.responseXML) {
|
||||||
console.log(transport.responseText);
|
console.log(transport.responseText);
|
||||||
|
alert(__("Server error while trying to subscribe to specified feed."));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var result = transport.responseXML.getElementsByTagName('result')[0];
|
var result = transport.responseXML.getElementsByTagName('result')[0];
|
||||||
var rc = parseInt(result.getAttribute('code'));
|
var rc = parseInt(result.getAttribute('code'));
|
||||||
|
|||||||
Reference in New Issue
Block a user