subscribetofeed: handle server error/wrong output properly
This commit is contained in:
parent
90c9c16f0e
commit
d3204726a5
|
@ -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'));
|
||||||
|
|
Loading…
Reference in New Issue