Skip to main content

gutter_marks

Function gutter_marks 

Source
pub fn gutter_marks(errors: &[String]) -> Vec<(usize, String)>
Expand description

Parse Python-traceback line N (File "...", line N) marks: one 1-based line (last match wins) plus the error’s last non-empty line (the exception line, not the Traceback header). Entries without a line number (clean strings) are ignored.