mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-06 19:45:29 +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.")
|
let error = FinalError::with_title("Unexpected EOF when asking question.")
|
||||||
.detail("When asking the user:")
|
.detail("When asking the user:")
|
||||||
.detail(format!(" \"{message}\""))
|
.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`.");
|
.hint("If using Ouch in scripting, consider using `--yes` and `--no`.");
|
||||||
|
|
||||||
return Err(error.into());
|
return Err(error.into());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user