Skip to content

Commit

Permalink
Check for input error
Browse files Browse the repository at this point in the history
  • Loading branch information
Widcket committed Jan 26, 2021
1 parent 0f0449e commit 4ea5624
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/prompt/prompt.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ func Confirm(message string) bool {
Message: message,
}

survey.AskOne(prompt, &result)
if err := survey.AskOne(prompt, &result); err != nil {
return false
}

return result
}

0 comments on commit 4ea5624

Please sign in to comment.