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->type = $this::FEED_ATOM;
break;
default:
- $this->error = "Unknown/unsupported feed type";
+ if( !isset($this->error) ){
+ $this->error = "Unknown/unsupported feed type";
+ }
return;
}
}
} else {
- $this->error = "Unknown/unsupported feed type";
+ if( !isset($this->error) ){
+ $this->error = "Unknown/unsupported feed type";
+ }
return;
}
}