Commit 65917a85 authored by SWE CI's avatar SWE CI

Merge branch 'release/v0.6.0'

parents 67c374a0 62937cc6
Pipeline #65001 passed with stage
in 15 seconds
...@@ -91,10 +91,11 @@ func initConfig() { ...@@ -91,10 +91,11 @@ func initConfig() {
viper.SetEnvKeyReplacer(replacer) viper.SetEnvKeyReplacer(replacer)
// If a config file is found, read it in. // If a config file is found, read it in.
if err := viper.ReadInConfig(); err == nil { err := viper.ReadInConfig()
// fmt.Println("Using config file:", viper.ConfigFileUsed()) if err != nil {
fmt.Fprintf(os.Stderr, "Error reading config file: %s\n", err)
} else { } 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