aboutsummaryrefslogtreecommitdiffhomepage
path: root/api/icon.go
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net>2018-08-25 10:04:38 -0700
committerGravatar Frédéric Guillot <fred@miniflux.net>2018-08-25 10:04:58 -0700
commitb17e4e88f6f09a578be22d5a39cb47c8f14422ed (patch)
tree628f7a3740313006cea1a6c8c803bd2d5942dadb /api/icon.go
parentc327833314fafd4accb9bbfbaf01f0dbee7a9a10 (diff)
Expose real error messages for internal server API errors
Diffstat (limited to 'api/icon.go')
-rw-r--r--api/icon.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/icon.go b/api/icon.go
index 2d2171a..0ad1081 100644
--- a/api/icon.go
+++ b/api/icon.go
@@ -28,7 +28,7 @@ func (c *Controller) FeedIcon(w http.ResponseWriter, r *http.Request) {
icon, err := c.store.IconByFeedID(context.New(r).UserID(), feedID)
if err != nil {
- json.ServerError(w, errors.New("Unable to fetch feed icon"))
+ json.ServerError(w, err)
return
}