mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-15 06:16:06 +00:00
Improved error message when config file not found.
This commit is contained in:
1 parent
5dfc1dedb8
commit
20467e36b4
1 file changed
+1
-1
+1
-1
@@ -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