From 3b8c2417fbeaf84c4fb35e30f4c1a32ffcb51a59 Mon Sep 17 00:00:00 2001 From: Dominik Honnef Date: Wed, 3 Apr 2013 11:04:33 +0200 Subject: [PATCH] use fmt.Fprintf instead of fmt.Fprint fmt.Fprint does not allow format strings --- commands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands.go b/commands.go index 33a0997b9c..43ff0ca24f 100644 --- a/commands.go +++ b/commands.go @@ -99,7 +99,7 @@ func (srv *Server) CmdLogin(stdin io.ReadCloser, stdout io.Writer, args ...strin } if err != nil { if err != io.EOF { - fmt.Fprint(stdout, "Read error: %v\n", err) + fmt.Fprintf(stdout, "Read error: %v\n", err) } break }