From b17e4e88f6f09a578be22d5a39cb47c8f14422ed Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sat, 25 Aug 2018 10:04:38 -0700 Subject: Expose real error messages for internal server API errors --- api/subscription.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'api/subscription.go') diff --git a/api/subscription.go b/api/subscription.go index ee471c6..603b932 100644 --- a/api/subscription.go +++ b/api/subscription.go @@ -5,7 +5,6 @@ package api // import "miniflux.app/api" import ( - "errors" "fmt" "net/http" @@ -27,7 +26,7 @@ func (c *Controller) GetSubscriptions(w http.ResponseWriter, r *http.Request) { subscriptionInfo.Password, ) if err != nil { - json.ServerError(w, errors.New("Unable to discover subscriptions")) + json.ServerError(w, err) return } -- cgit v1.2.3