1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-07-22 17:18:37 +00:00

Expose real error messages for internal server API errors

This commit is contained in:
Frédéric Guillot 2018-08-25 10:04:38 -07:00
parent c327833314
commit b17e4e88f6
6 changed files with 25 additions and 26 deletions

View file

@ -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
}