Skip to content

Commit

Permalink
Fix suggestion to use task --init not being shown anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
andreynering committed Aug 19, 2018
1 parent a6cac26 commit df951a0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions errors.go
Expand Up @@ -10,14 +10,6 @@ var (
ErrTaskfileAlreadyExists = errors.New("task: A Taskfile already exists")
)

type taskFileNotFound struct {
taskFile string
}

func (err taskFileNotFound) Error() string {
return fmt.Sprintf(`task: No task file found (is it named "%s"?). Use "task --init" to create a new one`, err.taskFile)
}

type taskNotFoundError struct {
taskName string
}
Expand Down
2 changes: 1 addition & 1 deletion internal/taskfile/read/taskfile.go
Expand Up @@ -16,7 +16,7 @@ func Taskfile(dir string) (*taskfile.Taskfile, error) {
path := filepath.Join(dir, "Taskfile.yml")
t, err := readTaskfile(path)
if err != nil {
return nil, err
return nil, fmt.Errorf(`No Taskfile.yml found. Use "task --init" to create a new one`)
}

path = filepath.Join(dir, fmt.Sprintf("Taskfile_%s.yml", runtime.GOOS))
Expand Down

0 comments on commit df951a0

Please sign in to comment.