diff options
author | Frédéric Guillot <fred@miniflux.net> | 2018-08-25 10:04:38 -0700 |
---|---|---|
committer | Frédéric Guillot <fred@miniflux.net> | 2018-08-25 10:04:58 -0700 |
commit | b17e4e88f6f09a578be22d5a39cb47c8f14422ed (patch) | |
tree | 628f7a3740313006cea1a6c8c803bd2d5942dadb /api/subscription.go | |
parent | c327833314fafd4accb9bbfbaf01f0dbee7a9a10 (diff) |
Expose real error messages for internal server API errors
Diffstat (limited to 'api/subscription.go')
-rw-r--r-- | api/subscription.go | 3 |
1 files changed, 1 insertions, 2 deletions
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 } |