Hi, the JSON rendering code seems to expose direct encoding errors to outside
https://github.com/go-chi/render/blob/master/responder.go#L98
if err := enc.Encode(v); err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
would it be better to add another function argument to render.JSON() or something, rather than exposing library error messages?
Hi, the JSON rendering code seems to expose direct encoding errors to outside
https://github.com/go-chi/render/blob/master/responder.go#L98
would it be better to add another function argument to
render.JSON()or something, rather than exposing library error messages?