eprintln!("If you do NOT intend to update '{}', please ensure you did not accidentally", tool);
eprintln!("change the submodule at '{}'. You may ask your reviewer for the", submodule);
eprintln!("proper steps.");
- std::process::exit(3);
+ crate::detail_exit(3);
}
fn check_changed_files(toolstates: &HashMap<Box<str>, ToolState>) {
Ok(o) => o,
Err(e) => {
eprintln!("Failed to get changed files: {:?}", e);
- std::process::exit(1);
+ crate::detail_exit(1);
}
};
}
if did_error {
- std::process::exit(1);
+ crate::detail_exit(1);
}
check_changed_files(&toolstates);
}
if did_error {
- std::process::exit(1);
+ crate::detail_exit(1);
}
if builder.config.channel == "nightly" && env::var_os("TOOLSTATE_PUBLISH").is_some() {