Commit 62937cc6 authored by Andy Cobaugh's avatar Andy Cobaugh

Retain config file messages while allowing completion to work by sending...

Retain config file messages while allowing completion to work by sending messages to stderr. Fixes linting issues
parent 67c374a0
Pipeline #64997 passed with stages
in 45 seconds
......@@ -91,10 +91,11 @@ func initConfig() {
viper.SetEnvKeyReplacer(replacer)
// If a config file is found, read it in.
if err := viper.ReadInConfig(); err == nil {
// fmt.Println("Using config file:", viper.ConfigFileUsed())
err := viper.ReadInConfig()
if err != nil {
fmt.Fprintf(os.Stderr, "Error reading config file: %s\n", err)
} else {
// color.Red(err.Error())
fmt.Fprintf(os.Stderr, "Using config file: %s\n", viper.ConfigFileUsed())
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment