Cleanup code and improve error messages

This commit is contained in:
Remco
2017-03-22 22:28:40 +01:00
parent 9541414476
commit 8ec4d5dbb7
2 changed files with 2 additions and 3 deletions

View File

@ -290,7 +290,7 @@ func (s *Server) putHandler(w http.ResponseWriter, r *http.Request) {
n, err := io.CopyN(&b, f, _24K+1)
if err != nil && err != io.EOF {
log.Printf("%s", err.Error())
log.Printf("Error putting new file: %s", err.Error())
http.Error(w, err.Error(), 500)
return
}