Sfoglia il codice sorgente

use fmt.Fprintf instead of fmt.Fprint

fmt.Fprint does not allow format strings
Dominik Honnef 12 anni fa
parent
commit
3b8c2417fb
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      commands.go

+ 1 - 1
commands.go

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