()
| 137 | } |
| 138 | |
| 139 | func (err *TaskCancelledNoTerminalError) Error() string { |
| 140 | return fmt.Sprintf( |
| 141 | `task: Task %q cancelled because it has a prompt and the environment is not a terminal. Use --yes (-y) to run anyway.`, |
| 142 | err.TaskName, |
| 143 | ) |
| 144 | } |
| 145 | |
| 146 | func (err *TaskCancelledNoTerminalError) Code() int { |
| 147 | return CodeTaskCancelled |
nothing calls this directly
no outgoing calls
no test coverage detected