We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84896c7 commit 3dcab29Copy full SHA for 3dcab29
src/bootstrap/bin/rustc.rs
@@ -149,8 +149,8 @@ fn main() {
149
150
if let Some(mut on_fail) = on_fail {
151
let e = match cmd.status() {
152
- Ok(s) if s.success() => std::process::exit(0),
153
- e => e,
+ Ok(s) => if s.success() { std::process::exit(0) } else { format!("Ok({})", s) },
+ Err(e) => format!("Err({})", e),
154
};
155
println!("\nDid not run successfully: {}\n{:?}\n-------------", e, cmd);
156
status_code(&mut on_fail).expect("could not run the backup command");
0 commit comments