Skip to content

Commit

Permalink
fix: print the quickstarts that match
Browse files Browse the repository at this point in the history
when more than one does in batch mode

Signed-off-by: Carlos Sanchez <carlos@apache.org>
  • Loading branch information
carlossg authored and hferentschik committed Aug 10, 2019
1 parent 57607f0 commit f4b8101
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/quickstarts/model.go
Expand Up @@ -110,7 +110,7 @@ func (model *QuickstartModel) CreateSurvey(filter *QuickstartFilter, batchMode b
answer = names[0]
} else if batchMode {
// should not prompt for selection in batch mode so return an error
return nil, fmt.Errorf("More than one quickstart matches the current filter options. Try filtering based on other criteria (eg. Owner or Text)")
return nil, fmt.Errorf("More than one quickstart matches the current filter options. Try filtering based on other criteria (eg. Owner or Text): %v", names)
} else {
// if no single answer after filtering and we're not in batch mode then prompt
prompt := &survey.Select{
Expand Down

0 comments on commit f4b8101

Please sign in to comment.