diff --git a/src/utils/question.rs b/src/utils/question.rs index 743d8fb..a91c3c2 100644 --- a/src/utils/question.rs +++ b/src/utils/question.rs @@ -211,7 +211,7 @@ impl<'a, T: Default> ChoicePrompt<'a, T> { let error = FinalError::with_title("Unexpected EOF when asking question.") .detail("When asking the user:") .detail(format!(" \"{message}\"")) - .detail("Expected 'y' or 'n' as answer, but found EOF instead.") + .detail("Expected one of the options as answer, but found EOF instead.") .hint("If using Ouch in scripting, consider using `--yes` and `--no`."); return Err(error.into()); @@ -297,7 +297,7 @@ impl<'a> Confirmation<'a> { let error = FinalError::with_title("Unexpected EOF when asking question.") .detail("When asking the user:") .detail(format!(" \"{message}\"")) - .detail("Expected one of the options as answer, but found EOF instead.") + .detail("Expected 'y' or 'n' as answer, but found EOF instead.") .hint("If using Ouch in scripting, consider using `--yes` and `--no`."); return Err(error.into());