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

Be more explicit about missing required variable #115

Open
licarth opened this issue Mar 27, 2019 · 0 comments
Open

Be more explicit about missing required variable #115

licarth opened this issue Mar 27, 2019 · 0 comments

Comments

@licarth
Copy link

licarth commented Mar 27, 2019

Output the name of missing required variable(s) when they're missing, instead of just "error calling required: variable not provided to template".

---
project: test-project

tasks:
  test-task:
    cmd: echo {{.MISSING_VARIABLE}}
$ m test-task
• test-project/test-task: Running
• test-project/test-task: Failed, Took: 901.515µs
⨯ error                     error=error running command: test-project/test-task: template: test:1:25: executing "test" at <required>: error calling required: variable not provided to template

I'll see if I've got some time for that this week, but feel free to take it if you want.

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

No branches or pull requests

1 participant