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

Comments

Projects
None yet
2 participants
@zeisss

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 rebeccaskinner added the bug label May 30, 2017

@rebeccaskinner

This comment has been minimized.

Show comment
Hide comment
@rebeccaskinner

rebeccaskinner May 30, 2017

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!

Contributor

rebeccaskinner commented May 30, 2017

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