serve restic: add more info to GET request error
This commit is contained in:
parent
677971643c
commit
7ccc6080b0
1 changed files with 2 additions and 2 deletions
|
@ -293,9 +293,9 @@ func (s *server) getObject(w http.ResponseWriter, r *http.Request, remote string
|
||||||
|
|
||||||
w.WriteHeader(code)
|
w.WriteHeader(code)
|
||||||
|
|
||||||
_, err = io.Copy(w, file)
|
n, err := io.Copy(w, file)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fs.Errorf(remote, "Didn't finish writing GET request: %v", err)
|
fs.Errorf(remote, "Didn't finish writing GET request (wrote %d/%d bytes): %v", n, size, err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue