]> git.lizzy.rs Git - rust.git/commitdiff
cargo: Print rustc's stdout when compilation fails
authorBrian Anderson <banderson@mozilla.com>
Sat, 7 Jan 2012 02:04:22 +0000 (18:04 -0800)
committerBrian Anderson <banderson@mozilla.com>
Sat, 7 Jan 2012 02:04:25 +0000 (18:04 -0800)
stdout is where all the useful info is, not stderr.

src/cargo/cargo.rs

index 2e119cdb7dd80c7efcfdff8623005f2e0285eb41..cec2da2a455dfcb0d9fce3cedcc5e488881b5474 100644 (file)
@@ -356,7 +356,7 @@ fn install_one_crate(c: cargo, _path: str, cf: str, _p: pkg) {
     let old = fs::list_dir(".");
     let p = run::program_output("rustc", [name + ".rc"]);
     if p.status != 0 {
-        error(#fmt["rustc failed: %d %s", p.status, p.err]);
+        error(#fmt["rustc failed: %d\n%s\n%s", p.status, p.err, p.out]);
         ret;
     }
     let new = fs::list_dir(".");