commit 354192d2b8b18f92966f77e156a9f09d0570ec98
parent 029cdb68f5d76efd697fb9561aec3bf0aa8fcefb
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date: Mon, 13 Jul 2015 10:38:28 +0200
Log missing theme as FATAL
See #1234
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/commands/hugo.go b/commands/hugo.go
@@ -281,8 +281,7 @@ func InitializeConfig() {
themeDir := helpers.GetThemeDir()
if themeDir != "" {
if _, err := os.Stat(themeDir); os.IsNotExist(err) {
- jww.ERROR.Println("Unable to find theme Directory:", themeDir)
- os.Exit(1)
+ jww.FATAL.Fatalln("Unable to find theme Directory:", themeDir)
}
}