mirror of
https://github.com/gohugoio/hugo.git
synced 2025-03-19 11:43:04 +00:00
Improved error message when config file not found.
This commit is contained in:
parent
5dfc1dedb8
commit
20467e36b4
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||||
|
|
Loading…
Reference in a new issue