shithub: hugo

Download patch

ref: 354192d2b8b18f92966f77e156a9f09d0570ec98
parent: 029cdb68f5d76efd697fb9561aec3bf0aa8fcefb
author: Bjørn Erik Pedersen <[email protected]>
date: Mon Jul 13 06:38:28 EDT 2015

Log missing theme as FATAL

See #1234

--- a/commands/hugo.go
+++ b/commands/hugo.go
@@ -281,8 +281,7 @@
 	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)
 		}
 	}