From 0bfe523ba188979f6176bd5b5ccc529c764a4312 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Tue, 18 Aug 2015 11:44:25 +0200 Subject: better feed not found message @blizzz --- fetcher/feedfetcher.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'fetcher') diff --git a/fetcher/feedfetcher.php b/fetcher/feedfetcher.php index 3222a8419..0dbe99cbe 100644 --- a/fetcher/feedfetcher.php +++ b/fetcher/feedfetcher.php @@ -114,7 +114,10 @@ class FeedFetcher implements IFeedFetcher { if ($ex instanceof MalFormedXmlException) { $msg = $this->l10n->t('Feed contains invalid XML'); } else if ($ex instanceof SubscriptionNotFoundException) { - $msg = $this->l10n->t('Could not find a feed'); + $msg = $this->l10n->t('Feed not found: either the website ' . + 'does not provide a feed or blocks access. To rule out ' . + 'blocking, curl the feed on your server, e.g.: curl ' . + 'http://the-feed.tld'); } else if ($ex instanceof UnsupportedFeedFormatException) { $msg = $this->l10n->t('Detected feed format is not supported'); } else if ($ex instanceof InvalidCertificateException) { -- cgit v1.2.3