Use Fprintf to print formatted strings

Shouldn't be using Fprint() with a format string.
This commit is contained in:
Eric Paris
2015-04-14 10:47:58 -04:00
parent 1ffaf67429
commit 036937227f
4 changed files with 4 additions and 4 deletions

View File

@@ -45,7 +45,7 @@ func main() {
verflag.PrintAndExitIfRequested()
if err := s.Run(pflag.CommandLine.Args()); err != nil {
fmt.Fprint(os.Stderr, "%v\n", err)
fmt.Fprintf(os.Stderr, "%v\n", err)
os.Exit(1)
}
}