client/tr: add a bit of context to envbuilder errors

This commit is contained in:
Michael Schurter
2018-11-15 16:07:56 -08:00
parent 2283c8fff3
commit a552a0c42c

View File

@@ -465,7 +465,7 @@ func (tr *TaskRunner) runDriver() error {
// Build hcl context variables
vars, errs, err := tr.envBuilder.Build().AllValues()
if err != nil {
return err
return fmt.Errorf("error building environment variables: %v", err)
}
// Handle per-key errors