Skip to main content

format_error

Function format_error 

Source
pub fn format_error(
    error: &CompileError,
    source: &str,
    filename: &str,
) -> String
Expand description

Format a compile error with rich diagnostics (colors, source snippets, suggestions).

This is a convenience function that wraps diagnostics::format_compile_error and renders all diagnostics with ANSI colors for terminal display.