mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-27 03:01:47 +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)
|
||||
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")
|
||||
|
|
Loading…
Reference in a new issue