Skip to content

Commit 9f57036

Browse files
committed
debugging on template unreplaced
1 parent bbffac1 commit 9f57036

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parser/template_helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func replaceTemplateVars(template string, vars map[string]string) string {
1616
// Check for any remaining unreplaced variables
1717
remaining := findUnreplacedVars(result)
1818
if len(remaining) > 0 {
19-
panic(fmt.Sprintf("Unreplaced template variables found: %v", remaining))
19+
panic(fmt.Sprintf("Unreplaced template variables found: %v.\nTemplate:\n%v\n", remaining, result))
2020
}
2121

2222
return result

0 commit comments

Comments
 (0)