Unterminated raw string before another raw string reports bad character
zeisss opened this issue · 1 comments
zeisss commented
This was a very confusing error for me:
task "foo" {
apply = "echo {{param `foo}} {{param `bar`}}"
}
Error:
* root/module.bootstrap/module.node-exporter/task.foo: template: DependencyTemplate:1: bad character U+0060 '`' file=test.hcl
Maybe it is possible to detect some bad combination of raw strings and make the error more clearly?
rebeccaskinner commented
Checking for balanced quotes and braces shouldn't be terribly difficult before we run templates through the processor. I'll take a look at this soon (or I'm happy to help you work through getting a PR together if you'd like to dig into the code yourself).
Thanks!