mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 16:34:30 +01:00
serve restic: add more info to GET request error
This commit is contained in:
parent
677971643c
commit
7ccc6080b0
@ -293,9 +293,9 @@ func (s *server) getObject(w http.ResponseWriter, r *http.Request, remote string
|
||||
|
||||
w.WriteHeader(code)
|
||||
|
||||
_, err = io.Copy(w, file)
|
||||
n, err := io.Copy(w, file)
|
||||
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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user