From b5b2649283391fb9a00ddc1cc1d866bd6785c3cb Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Sat, 6 Oct 2018 17:55:23 -0300 Subject: [PATCH] Fix broken --status flag Fixes #139 --- status.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/status.go b/status.go index 853ae246..0459efee 100644 --- a/status.go +++ b/status.go @@ -12,9 +12,9 @@ import ( // Status returns an error if any the of given tasks is not up-to-date func (e *Executor) Status(calls ...taskfile.Call) error { for _, call := range calls { - t, ok := e.Taskfile.Tasks[call.Task] - if !ok { - return &taskNotFoundError{taskName: call.Task} + t, err := e.CompiledTask(call) + if err != nil { + return err } isUpToDate, err := isTaskUpToDate(e.Context, t) if err != nil {