Skip to main content

render_diagnostic

Function render_diagnostic 

Source
pub fn render_diagnostic(diag: &dyn Diagnostic) -> String
Expand description

Render a miette::Diagnostic to a plain-text string (no ANSI colors).

Uses GraphicalReportHandler with ThemeStyles::none() so the output is safe for NAPI / JS error messages.