1
0
mirror of https://github.com/go-task/task.git synced 2025-11-23 22:24:45 +02:00

fix: exit codes for indirect tasks

This commit is contained in:
Pete Davison
2023-07-19 23:08:22 +00:00
committed by Andrey Nering
parent 659ba317c1
commit 6059ce2ac4
3 changed files with 40 additions and 14 deletions

View File

@@ -239,6 +239,10 @@ func (e *Executor) RunTask(ctx context.Context, call taskfile.Call) error {
continue
}
if !call.Direct {
return err
}
return &errors.TaskRunError{TaskName: t.Task, Err: err}
}
}