Skip to main content

print_error_envelope

Function print_error_envelope 

Source
pub fn print_error_envelope(kind: &str, message: &str)
Expand description

Write a structured error envelope as the last line of stderr.

Consumers can parse this JSON to branch on error.kind without parsing free-form error text.