mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-06 11:35:45 +00:00
revert: update message error in ChoicePrompt instead Confirmation
This commit is contained in:
parent
d69770d760
commit
b5cb3e075d
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user