Return more useful error

This commit is contained in:
Konrad Wojas 2021-01-04 14:33:31 +08:00 committed by Alexander Neumann
parent c2958906ea
commit e957e42336

View file

@ -393,8 +393,7 @@ func (h *Handler) listBlobsV1(w http.ResponseWriter, r *http.Request) {
data, err := json.Marshal(names)
if err != nil {
h.internalServerError(w, fmt.Errorf(
"cannot determine object type: %s", r.URL.Path))
h.internalServerError(w, err)
return
}