summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Service/FeedServiceV2.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Service/FeedServiceV2.php b/lib/Service/FeedServiceV2.php
index 1d78c1549..6b354dc1b 100644
--- a/lib/Service/FeedServiceV2.php
+++ b/lib/Service/FeedServiceV2.php
@@ -205,7 +205,9 @@ class FeedServiceV2 extends Service
} catch (ReadErrorException $ex) {
$this->logger->debug($ex->getMessage());
# the url did not lead to a valid feed, try autodiscover
- if ($full_discover) {
+ if ($full_discover === false) {
+throw new ServiceNotFoundException($ex->getMessage());
+}
$this->logger->warning("No valid feed found at URL, attempting auto discovery");
$feeds = $this->explorer->discover($feedUrl);
if ($feeds !== []) {