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

Method Error

errors/errors_task.go:139–144  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

137}
138
139func (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
146func (err *TaskCancelledNoTerminalError) Code() int {
147 return CodeTaskCancelled

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected