Return more useful error

This commit is contained in:
Konrad Wojas
2021-08-09 10:49:41 +02:00
committed by Alexander Neumann
parent c2958906ea
commit e957e42336
+1 -2
View File
@@ -393,8 +393,7 @@ func (h *Handler) listBlobsV1(w http.ResponseWriter, r *http.Request) {
data, err := json.Marshal(names) data, err := json.Marshal(names)
if err != nil { if err != nil {
h.internalServerError(w, fmt.Errorf( h.internalServerError(w, err)
"cannot determine object type: %s", r.URL.Path))
return return
} }