ref: 20467e36b43b3146e3b82f43a5631fcdb8622fd9
parent: 5dfc1dedb8ac53b7a2d3823d06808ae86f90b3d9
author: spf13 <[email protected]>
date: Thu Oct 16 16:20:39 EDT 2014
Improved error message when config file not found.
--- a/commands/hugo.go
+++ b/commands/hugo.go
@@ -94,7 +94,7 @@
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")