mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-31 16:15:20 +02:00
fix: improve FeedExpander (#3103)
* fix: improve FeedExpander Include the first libxml error in exception. Give better error message if trying to parse the empty string. Log all libxml errors if debug mode is enabled. * error handling and logging tweak
This commit is contained in:
parent
f9cd397900
commit
e027bd9274
5 changed files with 53 additions and 22 deletions
|
@ -321,7 +321,7 @@ class FeedItem
|
|||
if (is_string($content)) {
|
||||
$this->content = $content;
|
||||
} else {
|
||||
Debug::log('Content must be a string!');
|
||||
Debug::log(sprintf('Feed content must be a string but got %s', gettype($content)));
|
||||
}
|
||||
|
||||
return $this;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue