Skip to main content

map_parse_err

Function map_parse_err 

Source
pub fn map_parse_err(ctx: &str, e: &Error) -> CliError
Expand description

Map a serde_json parse error into a domain CliError with context.

Takes &serde_json::Error (Display/line/column only) — never consumes the error value when the caller still needs it (rules: smallest permission).