MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / pretty_error

Function pretty_error

cranelift/codegen/src/print_errors.rs:214–220  ·  view source on GitHub ↗

Pretty-print a Cranelift error.

(func: &ir::Function, err: CodegenError)

Source from the content-addressed store, hash-verified

212
213/// Pretty-print a Cranelift error.
214pub fn pretty_error(func: &ir::Function, err: CodegenError) -> String {
215 if let CodegenError::Verifier(e) = err {
216 pretty_verifier_error(func, None, e)
217 } else {
218 err.to_string()
219 }
220}

Callers 4

pretty_anyhow_errorFunction · 0.85
compile_maybe_cachedFunction · 0.85
compile_uncachedFunction · 0.85
finish_with_infoMethod · 0.85

Calls 2

pretty_verifier_errorFunction · 0.85
to_stringMethod · 0.45

Tested by

no test coverage detected