Improve error message when downloading an incomplete file

This commit is contained in:
Kevin van Zonneveld 2013-03-29 22:51:08 +01:00
parent 817129c2a5
commit 15c3a6f898
1 changed files with 1 additions and 1 deletions

View File

@ -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
}
}