Skip to content

Commit b8a0dda

Browse files
committed
Return different message for timeout during Rust version check
1 parent 6056867 commit b8a0dda

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/rustup-cli/common.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ pub fn rustc_version(toolchain: &Toolchain) -> String {
248248
}
249249
Ok(None) => {
250250
let _ = child.kill();
251+
return String::from("(timeout reading rustc version)")
251252
}
252253
Ok(Some(_)) | Err(_) => {}
253254
}

0 commit comments

Comments
 (0)