mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 06:17:45 +00:00
Revise format for "Unable to locate Config file" error
This commit is contained in:
1 parent
df85e5a0aa
commit
c9526f6e3f
1 file changed
+1
-1
+1
-1
@@ -254,7 +254,7 @@ func InitializeConfig() error {
|
|||||||
if _, ok := err.(viper.ConfigParseError); ok {
|
if _, ok := err.(viper.ConfigParseError); ok {
|
||||||
return newSystemError(err)
|
return newSystemError(err)
|
||||||
} else {
|
} else {
|
||||||
return newSystemError("Unable to locate Config file. Perhaps you need to create a new site. Run `hugo help new` for details", err)
|
return newSystemErrorF("Unable to locate Config file. Perhaps you need to create a new site.\n Run `hugo help new` for details. (%s)\n", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user