mirror of
https://github.com/restic/rest-server.git
synced 2026-09-25 21:41:25 -07:00
Return more useful error
This commit is contained in:
committed by
Alexander Neumann
parent
c2958906ea
commit
e957e42336
+1
-2
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user