mirror of
https://github.com/restic/rest-server.git
synced 2025-12-06 17:15:45 -08:00
Return more useful error
This commit is contained in:
committed by
Alexander Neumann
parent
c2958906ea
commit
e957e42336
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user