myke
myke copied to clipboard
Be more explicit about missing required variable
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.