Updated to work with the latest viper

This commit is contained in:
spf13 2014-04-10 14:24:18 -04:00
parent 8afff8c7c4
commit 41adafbc3e

View file

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