mirror of
https://github.com/restic/rest-server.git
synced 2025-10-19 07:33:21 +00:00
Return more useful error
This commit is contained in:
parent
c2958906ea
commit
e957e42336
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue