Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/hashintel/hash
/ main
Function
main
libs/error-stack/examples/exit_code.rs:19–25 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
17
}
18
19
fn main() -> ExitCode {
20
let report = Report::new(CustomError)
21
.attach_opaque(ExitCode::from(100))
22
.attach(
"this error has an exit code of 100!"
);
23
24
report.report()
25
}
Callers
nothing calls this directly
Calls
4
report
Method · 0.80
from
Function · 0.50
attach
Method · 0.45
attach_opaque
Method · 0.45
Tested by
no test coverage detected