MCPcopy 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
19fn 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

reportMethod · 0.80
fromFunction · 0.50
attachMethod · 0.45
attach_opaqueMethod · 0.45

Tested by

no test coverage detected