fix: update error message when find EOF in choise prompt response

This commit is contained in:
Talison Fabio 2025-03-24 09:19:08 -03:00
parent 44e80d2df3
commit d69770d760

View File

@ -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());