1
0
mirror of https://github.com/go-task/task.git synced 2025-02-09 13:47:06 +02:00

Handling errors on variable handling

Relates to #2
This commit is contained in:
Sascha Andres 2017-03-02 11:30:59 +01:00
parent 0162c2990e
commit b9820c5c7d

View File

@ -102,7 +102,10 @@ func RunTask(name string) error {
return nil
}
vars := t.handleVariables()
vars, err := t.handleVariables()
if err != nil {
return &taskRunError{name, err}
}
for _, d := range t.Deps {
if err := RunTask(ReplaceVariables(d, vars)); err != nil {