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
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -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