mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-07 03:55:28 +00:00
fix: update error message when find EOF in choise prompt response
This commit is contained in:
parent
44e80d2df3
commit
d69770d760
@ -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 '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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user