MCPcopy Create free account
hub / github.com/explodingcamera/tinywasm / format_error

Function format_error

crates/cli/src/value_parse.rs:36–38  ·  view source on GitHub ↗
(index: usize, ty: WasmType, value: &str, error: impl core::fmt::Display)

Source from the content-addressed store, hash-verified

34}
35
36fn format_error(index: usize, ty: WasmType, value: &str, error: impl core::fmt::Display) -> eyre::Report {
37 eyre::eyre!("failed to parse argument {} as {} from `{value}`: {error}", index + 1, format_wasm_type(ty))
38}
39
40#[cfg(test)]
41mod tests {

Callers 1

parse_argFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected