feat: improve exception message when xml parsing fails (#3009)

This commit is contained in:
Dag 2022-09-05 14:26:11 +02:00 committed by GitHub
parent a2c7865226
commit 8ea9472300
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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');