Skip to main content

emit_usage_error

Function emit_usage_error 

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

Serialize LoadError::Usage as stderr JSON with flag-specific recovery.

§Errors

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