()
| 16 | } |
| 17 | |
| 18 | func (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 | |
| 30 | func (err *TaskNotFoundError) Code() int { |
| 31 | return CodeTaskNotFound |
nothing calls this directly
no outgoing calls
no test coverage detected