Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Wulf/create-rust-app
/ exit_code
Function
exit_code
crates/create-rust-app_cli/src/utils/logger.rs:47–50 ·
view source on GitHub ↗
(msg: &str, code: i32)
Source
from the content-addressed store, hash-verified
45
}
46
47
pub fn exit_code(msg: &str, code: i32) -> ! {
48
error(msg);
49
std::process::exit(code);
50
}
51
52
pub fn exit_error(msg: &str, err: &std::io::Error) -> ! {
53
error(format!(
"{msg}: {err:?}"
).as_str());
Callers
1
install
Method · 0.85
Calls
1
error
Function · 0.85
Tested by
no test coverage detected