Improved error message when config file not found.
authorspf13 <steve.francia@gmail.com>
Fri, 17 Oct 2014 00:20:39 +0000 (20:20 -0400)
committerspf13 <steve.francia@gmail.com>
Fri, 17 Oct 2014 00:20:39 +0000 (20:20 -0400)
commands/hugo.go

index 7ebd6371b8cf1789a1263ec142abcc2cf5ff570b..e3d8efa0ffaa83d944c3330c4177091463a7fc02 100644 (file)
@@ -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")