Skip to main content

emit_error

Function emit_error 

Source
pub fn emit_error(mode: OutputMode, command: &str, err: &SubXError)
Expand description

Emit an error envelope through the appropriate renderer.

In OutputMode::Text this is a no-op (the existing print_error path in main.rs is responsible for stderr rendering). In OutputMode::Json this writes the JSON error envelope to stdout.