From 82c098aa0d513a203f409291c0704a361644835c Mon Sep 17 00:00:00 2001 From: konrad Date: Sat, 8 Sep 2018 16:10:46 +0200 Subject: [PATCH] Updated config to not hard fail when no config file is found. --- models/config.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/models/config.go b/models/config.go index 8714d1db86..8f85379fd7 100644 --- a/models/config.go +++ b/models/config.go @@ -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