projects
/
brevno-suite
/
hugo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df85e5a
)
Revise format for "Unable to locate Config file" error
author
Anthony Fok
<foka@debian.org>
Thu, 3 Dec 2015 07:28:09 +0000
(
00:28
-0700)
committer
Anthony Fok
<foka@debian.org>
Thu, 3 Dec 2015 07:28:09 +0000
(
00:28
-0700)
commands/hugo.go
patch
|
blob
|
history
diff --git
a/commands/hugo.go
b/commands/hugo.go
index e1a469e858559e00ec4abce385089fdb25ea8459..e892c13fea62168b110b493222a91d5f0b78c4f1 100644
(file)
--- a/
commands/hugo.go
+++ b/
commands/hugo.go
@@
-254,7
+254,7
@@
func InitializeConfig() error {
if _, ok := err.(viper.ConfigParseError); ok {
return newSystemError(err)
} else {
- return newSystemError
("Unable to locate Config file. Perhaps you need to create a new site. Run `hugo help new` for details
", err)
+ return newSystemError
F("Unable to locate Config file. Perhaps you need to create a new site.\n Run `hugo help new` for details. (%s)\n
", err)
}
}