myke icon indicating copy to clipboard operation
myke copied to clipboard

Be more explicit about missing required variable

Open licarth opened this issue 5 years ago • 0 comments

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.

licarth avatar Mar 27 '19 12:03 licarth