mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
Improved error message when config file not found.
This commit is contained in:
@@ -94,7 +94,7 @@ func InitializeConfig() {
|
|||||||
viper.AddConfigPath(Source)
|
viper.AddConfigPath(Source)
|
||||||
err := viper.ReadInConfig()
|
err := viper.ReadInConfig()
|
||||||
if err != nil {
|
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")
|
viper.RegisterAlias("taxonomies", "indexes")
|
||||||
|
Reference in New Issue
Block a user