From a3ecc99613bd591367dbcfe050e0ec23e47655d9 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Sat, 9 Apr 2016 21:10:10 +0200 Subject: Add curl error messages for ssl certificate errors, #966 --- fetcher/feedfetcher.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- cgit v1.2.3