mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-09 16:38:50 +00:00
feat: improve exception message when xml parsing fails (#3009)
This commit is contained in:
parent
a2c7865226
commit
8ea9472300
@ -104,7 +104,7 @@ abstract class FeedExpander extends BridgeAbstract
|
|||||||
$rssContent = simplexml_load_string(trim($content));
|
$rssContent = simplexml_load_string(trim($content));
|
||||||
|
|
||||||
if ($rssContent === false) {
|
if ($rssContent === false) {
|
||||||
throw new \Exception('Unable to parse string as xml');
|
throw new \Exception(sprintf('Unable to parse xml from "%s"', $url));
|
||||||
}
|
}
|
||||||
|
|
||||||
Debug::log('Detecting feed format/version');
|
Debug::log('Detecting feed format/version');
|
||||||
|
Loading…
Reference in New Issue
Block a user