1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

use fmt.Fprintf instead of fmt.Fprint

fmt.Fprint does not allow format strings
This commit is contained in:
Dominik Honnef 2013-04-03 11:04:33 +02:00
parent 15c3096e89
commit 3b8c2417fb

View file

@ -99,7 +99,7 @@ func (srv *Server) CmdLogin(stdin io.ReadCloser, stdout io.Writer, args ...strin
} }
if err != nil { if err != nil {
if err != io.EOF { if err != io.EOF {
fmt.Fprint(stdout, "Read error: %v\n", err) fmt.Fprintf(stdout, "Read error: %v\n", err)
} }
break break
} }