We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e55310 commit 0d8bcc3Copy full SHA for 0d8bcc3
src/bootstrap/lib.rs
@@ -1631,10 +1631,11 @@ fn chmod(_path: &Path, _perms: u32) {}
1631
/// If code is not 0 (successful exit status), exit status is 101 (rust's default error code.)
1632
/// If the test is running and code is an error code, it will cause a panic.
1633
fn detail_exit(code: i32) -> ! {
1634
- // Successful exit
+ // if in test and code is an error code, panic with staus code provided
1635
if cfg!(test) && code != 0 {
1636
panic!("status code: {}", code);
1637
} else {
1638
+ //otherwise,exit with provided status code
1639
std::process::exit(code);
1640
}
1641
0 commit comments