diff --git a/src/text/template/multi_test.go b/src/text/template/multi_test.go index 5d8c08f06f..5769470ff9 100644 --- a/src/text/template/multi_test.go +++ b/src/text/template/multi_test.go @@ -247,6 +247,9 @@ func TestAddParseTree(t *testing.T) { t.Fatal(err) } added, err := root.AddParseTree("c", tree["c"]) + if err != nil { + t.Fatal(err) + } // Execute. var b bytes.Buffer err = added.ExecuteTemplate(&b, "a", 0)