MCPcopy Create free account
hub / github.com/hashintel/hash / capture_error

Function capture_error

libs/error-stack/tests/common.rs:184–186  ·  view source on GitHub ↗
(closure: impl FnOnce() -> Result<(), Report<E>>)

Source from the content-addressed store, hash-verified

182}
183
184pub fn capture_error<E>(closure: impl FnOnce() -> Result<(), Report<E>>) -> Report<E> {
185 closure().expect_err("expected an error")
186}
187
188pub fn messages<E>(report: &Report<E>) -> Vec<String> {
189 report

Callers 15

create_reportFunction · 0.85
capturedFunction · 0.85
providedFunction · 0.85
bailFunction · 0.85
ensureFunction · 0.85
properly_encodes_lengthFunction · 0.85
encode_decodeFunction · 0.85
respond_errorMethod · 0.85
send_delay_error_delayedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected