From 41adafbc3e8c53475ba9a8bc8031dd4e0bf59664 Mon Sep 17 00:00:00 2001 From: spf13 Date: Thu, 10 Apr 2014 14:24:18 -0400 Subject: [PATCH] Updated to work with the latest viper --- commands/hugo.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/commands/hugo.go b/commands/hugo.go index b446e696a..c5393e90f 100644 --- a/commands/hugo.go +++ b/commands/hugo.go @@ -84,7 +84,10 @@ func init() { func InitializeConfig() { viper.SetConfigName(CfgFile) viper.AddConfigPath(Source) - viper.ReadInConfig() + err := viper.ReadInConfig() + if err != nil { + jww.ERROR.Println("Config not found... using only defaults, stuff may not work") + } viper.RegisterAlias("taxonomies", "indexes")