From 14baa769ab2b51daa4e20b308bf013c041d32c92 Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Wed, 23 Oct 2019 12:00:00 -0700 Subject: [PATCH] improve error message --- template/parse.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/parse.go b/template/parse.go index 903c98138..ff5c60988 100644 --- a/template/parse.go +++ b/template/parse.go @@ -371,7 +371,7 @@ func Parse(r io.Reader) (*Template, error) { if unused[0] == '_' { commentVal, ok := unusedMap[unused].(string) if !ok { - return nil, fmt.Errorf("Failed to cast root level comment value to string") + return nil, fmt.Errorf("Failed to cast root level comment value in comment \"%s\" to string.", unused) } comment := map[string]string{