1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 18:55:55 +00:00
If the feed cannot be parsed there is not particular error but always "Unknown/unsupported feed type". The patch uses the error from the XML parser which gives more detailed error reporting.
This commit is contained in:
kpn3m0
2013-05-14 15:32:36 +03:00
parent 4128abee48
commit 349c4229fd

View File

@@ -49,7 +49,9 @@ class FeedParser {
$this->type = $this::FEED_ATOM; $this->type = $this::FEED_ATOM;
break; break;
default: default:
$this->error = "Unknown/unsupported feed type"; if( !isset($this->error) ){
$this->error = "Unknown/unsupported feed type";
}
return; return;
} }
@@ -121,7 +123,9 @@ class FeedParser {
} }
} else { } else {
$this->error = "Unknown/unsupported feed type"; if( !isset($this->error) ){
$this->error = "Unknown/unsupported feed type";
}
return; return;
} }
} }