aboutsummaryrefslogtreecommitdiffhomepage
path: root/reader/subscription
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net>2018-02-08 18:16:54 -0800
committerGravatar Frédéric Guillot <fred@miniflux.net>2018-02-08 18:16:54 -0800
commitdda9114692c712c3139b156d968db66bff6ccabc (patch)
tree35619b483f175dddd94b1c86225c1a486235f53b /reader/subscription
parent16c2dc4a8c2cdb49d18205835e6dd77a2a79c4b9 (diff)
Improve error handling for HTTP client
Diffstat (limited to 'reader/subscription')
-rw-r--r--reader/subscription/finder.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/reader/subscription/finder.go b/reader/subscription/finder.go
index 8e361b7..4e2879a 100644
--- a/reader/subscription/finder.go
+++ b/reader/subscription/finder.go
@@ -33,6 +33,9 @@ func FindSubscriptions(websiteURL string) (Subscriptions, error) {
client := http.NewClient(websiteURL)
response, err := client.Get()
if err != nil {
+ if _, ok := err.(errors.LocalizedError); ok {
+ return nil, err
+ }
return nil, errors.NewLocalizedError(errConnectionFailure, err)
}