Skip to main content

error_lines

Function error_lines 

Source
pub fn error_lines(
    msg: &str,
    indent: usize,
    max_width: usize,
) -> Vec<Line<'static>>
Expand description

Render a per-row inline error message, wrapped to max_width. The first line is prefixed with , continuations with two spaces so the message text stays aligned. Indented by indent columns so it sits under the row’s label.