Skip to content

Commit d3cdcbd

Browse files
Elly Jonesbrson
authored andcommitted
---
yaml --- r: 6783 b: refs/heads/master c: bb2c1f7 h: refs/heads/master i: 6781: 4af51d2 6779: cb5c3a2 6775: d176130 6767: 869bcb2 6751: 271d840 6719: 357fc22 6655: bbeb897 v: v3
1 parent 0c131dd commit d3cdcbd

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: f8d06a2a84bd92ff5b32eb5182f48a33fd348bc6
2+
refs/heads/master: bb2c1f7613f769bd0905464305417286581db247

trunk/src/cargo/cargo.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,11 @@ fn install_one_crate(c: cargo, _path: str, cf: str, _p: pkg) {
308308
}
309309
log #fmt["Installing: %s", name];
310310
let old = fs::list_dir(".");
311-
run::run_program("rustc", [name + ".rc"]);
311+
let p = run::program_output("rustc", [name + ".rc"]);
312+
if p.status != 0 {
313+
error(#fmt["rustc failed: %d %s", p.status, p.err]);
314+
ret;
315+
}
312316
let new = fs::list_dir(".");
313317
let created =
314318
vec::filter::<str>(new, { |n| !vec::member::<str>(n, old) });

0 commit comments

Comments
 (0)