From 8ea94723006d22dfc613f7af36fec0d47692de9a Mon Sep 17 00:00:00 2001 From: Dag Date: Mon, 5 Sep 2022 14:26:11 +0200 Subject: [PATCH] feat: improve exception message when xml parsing fails (#3009) --- lib/FeedExpander.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/FeedExpander.php b/lib/FeedExpander.php index 052bce82..36043ffe 100644 --- a/lib/FeedExpander.php +++ b/lib/FeedExpander.php @@ -104,7 +104,7 @@ abstract class FeedExpander extends BridgeAbstract $rssContent = simplexml_load_string(trim($content)); 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');