1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-01 17:38: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

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