mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
Do not use fmt.Println with formatting strings
This commit is contained in:
parent
9d61b2d6db
commit
39c8991e5f
@ -41,7 +41,7 @@ func genVersion(version string) {
|
|||||||
t := template.Must(template.New("version").Parse(versionTemplate))
|
t := template.Must(template.New("version").Parse(versionTemplate))
|
||||||
versionFile, err := os.OpenFile("version.go", os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0600)
|
versionFile, err := os.OpenFile("version.go", os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0600)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println("genversion: Unable to generate ‘version.go’. Error: %s.", err)
|
fmt.Printf("genversion: Unable to generate ‘version.go’. Error: %s.\n", err)
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
defer versionFile.Close()
|
defer versionFile.Close()
|
||||||
@ -52,7 +52,7 @@ func genVersion(version string) {
|
|||||||
}{version, genReleaseTag(version)})
|
}{version, genReleaseTag(version)})
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println("genversion: Unable to generate ‘version.go’. Error: %s.", err)
|
fmt.Printf("genversion: Unable to generate ‘version.go’. Error: %s.\n", err)
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user