Merge pull request #595 from dotcloud/typo_error-fix

Small fix about the error in push
This commit is contained in:
Guillaume J. Charmes 2013-05-13 10:46:38 -07:00
commit 9023db5c5d

2
api.go
View file

@ -353,7 +353,7 @@ func postImagesPush(srv *Server, w http.ResponseWriter, r *http.Request, vars ma
defer in.Close()
fmt.Fprintf(out, "HTTP/1.1 200 OK\r\nContent-Type: application/vnd.docker.raw-stream\r\n\r\n")
if err := srv.ImagePush(name, registry, out); err != nil {
fmt.Fprintln(out, "Error: %s\n", err)
fmt.Fprintf(out, "Error: %s\n", err)
}
return nil
}