MCPcopy Create free account
hub / github.com/go-task/task / Error

Method Error

errors/errors_taskfile.go:21–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19}
20
21func (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
34func (err TaskfileNotFoundError) Code() int {
35 return CodeTaskfileNotFound

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected