build_helper::util

Function detail_exit

Source
pub fn detail_exit(code: i32, is_test: bool) -> !
Expand description

If code is not 0 (successful exit status), exit status is 101 (rust’s default error code.) If is_test true and code is an error code, it will cause a panic.