Browse Source

Merge pull request #152 from nodakai/patch-1

lib.rs: use Display rather than Debug for ExitStatus
cmd
Alex Crichton 8 years ago
committed by GitHub
parent
commit
ab174cd2d4
  1. 4
      src/lib.rs

4
src/lib.rs

@ -1102,7 +1102,7 @@ fn run(cmd: &mut Command, program: &str) {
let (mut child, print) = spawn(cmd, program);
let status = child.wait().expect("failed to wait on child process");
print.join().unwrap();
println!("{:?}", status);
println!("{}", status);
if !status.success() {
fail(&format!("command did not execute successfully, got: {}", status));
}
@ -1115,7 +1115,7 @@ fn run_output(cmd: &mut Command, program: &str) -> Vec<u8> {
child.stdout.take().unwrap().read_to_end(&mut stdout).unwrap();
let status = child.wait().expect("failed to wait on child process");
print.join().unwrap();
println!("{:?}", status);
println!("{}", status);
if !status.success() {
fail(&format!("command did not execute successfully, got: {}", status));
}

Loading…
Cancel
Save