(prompt string)
| 169 | } |
| 170 | |
| 171 | func NoSuchPromptErr(prompt string) error { |
| 172 | return fmt.Errorf("no such prompt '%s'", prompt) |
| 173 | } |
| 174 | |
| 175 | func NoSuchAnswerErr(answer string, options []string) error { |
| 176 | return fmt.Errorf("no such answer '%s' in [%s]", answer, strings.Join(options, ", ")) |