Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/news.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMichael Hamann <michael@content-space.de>2021-11-30 23:18:13 +0300
committerBenjamin Brahmer <info@b-brahmer.de>2021-12-01 01:39:39 +0300
commitf071c05a487a41c3813aed63837454772c06aaec (patch)
treeb9bb09678bc872c342e0da92619e3c97f3f4ae23 /lib
parente52dc6a4ae94ff0ac7ffabb6320c895450c28833 (diff)
Fix catching connect exceptions while fetching feed logos #1570
Display the message instead of the response when catching an exception during feed logo fetching. As there is no response and thus no method `getResponse()` in `ConnectException`, this fixes a "call to undefined method"-error that prevented feeds from fetching if fetching the logo resulted in a `ConnectException`. Signed-off-by: Michael Hamann <michael@content-space.de>
Diffstat (limited to 'lib')
-rwxr-xr-xlib/Fetcher/FeedFetcher.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Fetcher/FeedFetcher.php b/lib/Fetcher/FeedFetcher.php
index 5b48070d5..f9d6a7536 100755
--- a/lib/Fetcher/FeedFetcher.php
+++ b/lib/Fetcher/FeedFetcher.php
@@ -382,7 +382,7 @@ class FeedFetcher implements IFeedFetcher
'An error occurred while trying to download the feed logo of {url}: {error}',
[
'url' => $url,
- 'error' => $e->getResponse() ?? 'Unknown'
+ 'error' => $e->getMessage() ?? 'Unknown'
]
);
}