Improve error message when downloading an incomplete file
This commit is contained in:
parent
817129c2a5
commit
15c3a6f898
|
@ -172,7 +172,7 @@ func getFile(w http.ResponseWriter, r *http.Request, fileId string) {
|
|||
w.Header().Set("Content-Length", strconv.FormatInt(meta.Size, 10))
|
||||
|
||||
if _, err := io.CopyN(w, data, meta.Size); err != nil {
|
||||
log.Printf("getFile: CopyN failed with: %s", err.Error())
|
||||
log.Printf("getFile: CopyN of fileId %s failed with: %s. Is the upload complete yet?", fileId, err.Error())
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue