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

gomplate should output which template was being parsed when an error is encountered #239

Closed
hairyhenderson opened this issue Dec 29, 2017 · 0 comments
Assignees

Comments

@hairyhenderson
Copy link
Owner

hairyhenderson commented Dec 29, 2017

The root cause of #238 was that an unexpected file (a Vi swap file) was present. The (unhelpful) error message was:

> gomplate --input-dir templates --output-dir out -d config=config.toml
Error: template: template:3: unexpected {{end}}

I think that naming the template after the current template file being processed is the best course of action.

Because of the way the code is organized right now this won't be terribly elegant, so I think fixing this may involve some refactoring.

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

No branches or pull requests

1 participant