summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2016-04-09 21:10:10 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2016-04-09 21:10:10 +0200
commita3ecc99613bd591367dbcfe050e0ec23e47655d9 (patch)
treeaa47dfd16d4da521eee009214ba33daade432884
parentae11018b37ef9506aa27660315b55a0898491f59 (diff)
Add curl error messages for ssl certificate errors, #966
-rw-r--r--fetcher/feedfetcher.php3
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) {