Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unterminated raw string before another raw string reports bad character #621

Open
zeisss opened this issue May 27, 2017 · 1 comment
Open
Labels

Comments

@zeisss
Copy link

zeisss commented May 27, 2017

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
Copy link
Contributor

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants