Updated config to not hard fail when no config file is found.

This commit is contained in:
konrad 2018-09-08 16:10:46 +02:00
parent 371dd52fa9
commit 82c098aa0d
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 2 additions and 1 deletions

View File

@ -38,7 +38,8 @@ func InitConfig() (err error) {
viper.SetConfigName("config")
err = viper.ReadInConfig()
if err != nil {
return
fmt.Println(err)
fmt.Println("Using defaults.")
}
return