Use Printf instead of Println

Testing in Fedora reports:

./root.go:58:4: (*github.com/fatih/color.Color).Println call has
possible Printf formatting directive %s
This commit is contained in:
Mikel Olasagasti Uranga 2023-07-28 17:48:27 +02:00
parent 78b0db50e0
commit 2fd7f5aa9d
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ func initConfig() {
viper.SetConfigFile(cfgFile)
viper.AutomaticEnv()
if viper.ConfigFileUsed() == "" {
colors.Error.Println("cannot read config file %s\n", cfgFile)
colors.Error.Printf("cannot read config file %s\n", cfgFile)
os.Exit(1)
}
} else {