mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-16 20:53:59 +02:00
Improved error message when config file not found.
This commit is contained in:
@@ -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")
|
||||
|
Reference in New Issue
Block a user