summaryrefslogtreecommitdiff
path: root/gomplate_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'gomplate_test.go')
-rw-r--r--gomplate_test.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/gomplate_test.go b/gomplate_test.go
index 233faa3b..a90a2b20 100644
--- a/gomplate_test.go
+++ b/gomplate_test.go
@@ -17,7 +17,10 @@ import (
func testTemplate(g *gomplate, tmpl string) string {
var out bytes.Buffer
- g.runTemplate(&tplate{name: "testtemplate", contents: tmpl, target: &out})
+ err := g.runTemplate(&tplate{name: "testtemplate", contents: tmpl, target: &out})
+ if err != nil {
+ panic(err)
+ }
return out.String()
}