Skip to main content

emit_parse_error

Function emit_parse_error 

Source
pub fn emit_parse_error(err: &LoadError) -> Result<String, EmitError>
Expand description

Serialize a parse load error as stderr JSON.

§Errors

Returns EmitError::Serialize when the envelope cannot be serialized, or when err is not LoadError::Parse (miswire).