From: spf13 Date: Fri, 17 Oct 2014 00:20:39 +0000 (-0400) Subject: Improved error message when config file not found. X-Git-Tag: v0.13~375 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=20467e36;p=brevno-suite%2Fhugo Improved error message when config file not found. --- diff --git a/commands/hugo.go b/commands/hugo.go index 7ebd6371..e3d8efa0 100644 --- a/commands/hugo.go +++ b/commands/hugo.go @@ -94,7 +94,7 @@ func InitializeConfig() { viper.AddConfigPath(Source) err := viper.ReadInConfig() if err != nil { - jww.ERROR.Println("Config not found... using only defaults, stuff may not work") + jww.ERROR.Println("Unable to locate Config file. Perhaps you need to create a new site. Run `hugo help new` for details") } viper.RegisterAlias("taxonomies", "indexes")