hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 41adafbc3e8c53475ba9a8bc8031dd4e0bf59664
parent 8afff8c7c43d3e593313832dfa371461a0cb133b
Author: spf13 <steve.francia@gmail.com>
Date:   Thu, 10 Apr 2014 14:24:18 -0400

Updated to work with the latest viper

Diffstat:
Mcommands/hugo.go | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git 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")