Feature #686
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:
parent
4128abee48
commit
349c4229fd
1 changed files with 6 additions and 2 deletions
|
@ -49,7 +49,9 @@ class FeedParser {
|
|||
$this->type = $this::FEED_ATOM;
|
||||
break;
|
||||
default:
|
||||
$this->error = "Unknown/unsupported feed type";
|
||||
if( !isset($this->error) ){
|
||||
$this->error = "Unknown/unsupported feed type";
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -121,7 +123,9 @@ class FeedParser {
|
|||
|
||||
}
|
||||
} else {
|
||||
$this->error = "Unknown/unsupported feed type";
|
||||
if( !isset($this->error) ){
|
||||
$this->error = "Unknown/unsupported feed type";
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue