We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e905857 commit 636728eCopy full SHA for 636728e
src/bootstrap/setup.rs
@@ -152,6 +152,10 @@ pub fn interactive_path() -> io::Result<Profile> {
152
io::stdout().flush()?;
153
let mut input = String::new();
154
io::stdin().read_line(&mut input)?;
155
+ if input == "" {
156
+ eprintln!("EOF on stdin, when expecting answer to question. Giving up.");
157
+ std::process::exit(1);
158
+ }
159
break match parse_with_abbrev(&input) {
160
Ok(profile) => profile,
161
Err(err) => {
0 commit comments