shithub: hugo

Download patch

ref: 8a48412c44012e66628f1ca54ebade0321d556a7
parent: c00a1fcb7fc6a063725229c267a63b35dbf48d1a
author: Scott C Wilson <[email protected]>
date: Sun Jul 19 17:02:03 EDT 2015

On error, return error message, not nil

--- a/tpl/template.go
+++ b/tpl/template.go
@@ -197,7 +197,7 @@
 		compiler := amber.New()
 		// Parse the input file
 		if err := compiler.ParseFile(path); err != nil {
-			return nil
+			return err
 		}
 
 		if _, err := compiler.CompileWithTemplate(t.New(templateName)); err != nil {