()
| 19 | } |
| 20 | |
| 21 | func (err TaskfileNotFoundError) Error() string { |
| 22 | var walkText string |
| 23 | if err.OwnerChange { |
| 24 | walkText = " (or any of the parent directories until ownership changed)." |
| 25 | } else if err.Walk { |
| 26 | walkText = " (or any of the parent directories)." |
| 27 | } |
| 28 | if err.AskInit { |
| 29 | walkText += " Run `task --init` to create a new Taskfile." |
| 30 | } |
| 31 | return fmt.Sprintf(`task: No Taskfile found at %q%s`, filepath.ToSlash(err.URI), walkText) |
| 32 | } |
| 33 | |
| 34 | func (err TaskfileNotFoundError) Code() int { |
| 35 | return CodeTaskfileNotFound |
nothing calls this directly
no outgoing calls
no test coverage detected