better error output for dynamic variables in Taskvars.yml

This commit is contained in:
Rene Zbinden
2017-07-07 08:33:56 +02:00
parent 645f77b849
commit 92ecb1c7ec
2 changed files with 10 additions and 1 deletions

View File

@@ -41,7 +41,7 @@ func (e *Executor) handleDynamicVariableContent(value string) (string, error) {
Stderr: e.Stderr,
}
if err := execext.RunCommand(opts); err != nil {
return "", err
return "", &dynamicVarError{cause: err, cmd: opts.Command}
}
result := buff.String()