Updated config to not hard fail when no config file is found.
This commit is contained in:
parent
371dd52fa9
commit
82c098aa0d
1 changed files with 2 additions and 1 deletions
|
@ -38,7 +38,8 @@ func InitConfig() (err error) {
|
||||||
viper.SetConfigName("config")
|
viper.SetConfigName("config")
|
||||||
err = viper.ReadInConfig()
|
err = viper.ReadInConfig()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
fmt.Println(err)
|
||||||
|
fmt.Println("Using defaults.")
|
||||||
}
|
}
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue