diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2016-04-11 20:09:59 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2016-04-11 20:10:15 +0200 |
commit | 7ed353ded8edd5255e2e792c89d6307dcb978623 (patch) | |
tree | 1b49979cee37d927c012272f93b6efb3b9dbc443 /fetcher | |
parent | 8d7f3f8c9f9ed0e25e5d813b93d92e966db6f71b (diff) |
fix #969
Diffstat (limited to 'fetcher')
-rw-r--r-- | fetcher/feedfetcher.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fetcher/feedfetcher.php b/fetcher/feedfetcher.php index bcb03a594..a85a17c71 100644 --- a/fetcher/feedfetcher.php +++ b/fetcher/feedfetcher.php @@ -124,13 +124,13 @@ class FeedFetcher implements IFeedFetcher { return [$feed, $items]; } catch (Exception $ex) { - $this->handleError($ex); + $this->handleError($ex, $url); } } - private function handleError(Exception $ex) { + private function handleError(Exception $ex, $url) { $msg = $ex->getMessage(); if ($ex instanceof MalFormedXmlException) { @@ -139,7 +139,7 @@ class FeedFetcher implements IFeedFetcher { $msg = $this->l10n->t('Feed not found: either the website ' . 'does not provide a feed or blocks access. To rule out ' . 'blocking, try to download the feed on your server\'s ' . - 'command line using curl: curl http://the-feed.tld'); + 'command line using curl: curl ' . $url); } else if ($ex instanceof UnsupportedFeedFormatException) { $msg = $this->l10n->t('Detected feed format is not supported'); } else if ($ex instanceof InvalidCertificateException) { |