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

Method Error

errors/errors_task.go:18–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16}
17
18func (err *TaskNotFoundError) Error() string {
19 if err.DidYouMean != "" {
20 return fmt.Sprintf(
21 `task: Task %q does not exist. Did you mean %q?`,
22 err.TaskName,
23 err.DidYouMean,
24 )
25 }
26
27 return fmt.Sprintf(`task: Task %q does not exist`, err.TaskName)
28}
29
30func (err *TaskNotFoundError) Code() int {
31 return CodeTaskNotFound

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected