Skip to content

Commit 73365b2

Browse files
committed
bootstrap rustc shim: Report a warning if on_fail command fails
Signed-off-by: Ian Jackson <[email protected]>
1 parent eae70c6 commit 73365b2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/bootstrap/bin/rustc.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,10 @@ fn main() {
179179
}
180180

181181
if let Some(mut on_fail) = on_fail {
182-
on_fail.status().expect("Could not run the on_fail command");
182+
let status = on_fail.status().expect("Could not run the on_fail command");
183+
if !status.success() {
184+
eprintln!("\nwarning: the on-fail command also failed: {}\n", status);
185+
}
183186
}
184187

185188
// Preserve the exit code. In case of signal, exit with 0xfe since it's

0 commit comments

Comments
 (0)