shithub: hugo

Download patch

ref: 2bbecc7bc889afce63af6652131d382640136373
parent: 309db474c72aaa94c178a1f00d58ba8210651f99
author: Noah Campbell <[email protected]>
date: Wed Aug 7 13:34:17 EDT 2013

Better reporting when the template is missing.

--- a/hugolib/site.go
+++ b/hugolib/site.go
@@ -70,6 +70,11 @@
 		return
 	}
 	if err = site.Render(); err != nil {
+		fmt.Printf("Error rendering site: %s\n", err)
+		fmt.Printf("Available templates:")
+		for _, template := range site.Tmpl.Templates() {
+			fmt.Printf("\t%s\n", template.Name())
+		}
 		return
 	}
 	site.Write()