Skip to main content

error_overlay_html

Function error_overlay_html 

Source
pub fn error_overlay_html(
    err: &ParseError,
    source: &str,
    reload_client: &str,
) -> String
Expand description

Render a build error as a themed HTML overlay — the SAME source line + caret + Socratic message + spelling suggestion the terminal shows, in the Claude palette, with reload_client embedded so fixing the source snaps the page back to green. Reuses ParseError::diagnostic_parts so the terminal and browser never drift.