diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2016-04-09 21:10:10 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2016-04-09 21:10:10 +0200 |
commit | a3ecc99613bd591367dbcfe050e0ec23e47655d9 (patch) | |
tree | aa47dfd16d4da521eee009214ba33daade432884 /fetcher | |
parent | ae11018b37ef9506aa27660315b55a0898491f59 (diff) |
Add curl error messages for ssl certificate errors, #966
Diffstat (limited to 'fetcher')
-rw-r--r-- | fetcher/feedfetcher.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fetcher/feedfetcher.php b/fetcher/feedfetcher.php index 42cdfe0ba..83e58ef97 100644 --- a/fetcher/feedfetcher.php +++ b/fetcher/feedfetcher.php @@ -143,7 +143,8 @@ class FeedFetcher implements IFeedFetcher { } else if ($ex instanceof UnsupportedFeedFormatException) { $msg = $this->l10n->t('Detected feed format is not supported'); } else if ($ex instanceof InvalidCertificateException) { - $msg = $this->l10n->t('SSL Certificate is invalid'); + $msg = $this->l10n->t('SSL certificate error! ') . + $ex->getCode() . ' :' . curl_strerror($ex->getCode()); } else if ($ex instanceof InvalidUrlException) { $msg = $this->l10n->t('Website not found'); } else if ($ex instanceof MaxRedirectException) { |