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:
parent
c327833314
commit
b17e4e88f6
6 changed files with 25 additions and 26 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue