ref: 72ecd0cdc7b02bf55cf86cd13afbbfdc4f72de9c
parent: 18d69d7f8c0b7a0694e649ce2da91ab1063c7c88
author: Scott C Wilson <scottcwilson@gmail.com>
date: Sat Jul 18 05:14:39 EDT 2015
Ignore non-presence of "layouts" directory in watch logic Fixes #691
--- a/commands/hugo.go
+++ b/commands/hugo.go
@@ -343,10 +343,16 @@
func getDirList() []string {var a []string
dataDir := helpers.AbsPathify(viper.GetString("DataDir"))+ layoutDir := helpers.AbsPathify(viper.GetString("LayoutDir")) walker := func(path string, fi os.FileInfo, err error) error { if err != nil { if path == dataDir && os.IsNotExist(err) { jww.WARN.Println("Skip DataDir:", err)+ return nil
+
+ }
+ if path == layoutDir && os.IsNotExist(err) {+ jww.WARN.Println("Skip LayoutDir:", err)return nil
}
--
⑨