This commit is contained in:
2023-03-25 09:54:07 -07:00
parent 2bdf983909
commit 3e1fa97ce8
5 changed files with 23 additions and 43 deletions

View File

@ -90,12 +90,11 @@ fn main() -> Result<(), std::io::Error> {
} else { panic!(); }
},
Err((l, e)) => {
let LineLocation{pos, len} = l;
write!(
stdout, "{}{}{} {e:?}{}\r\n",
color::Fg(color::Red),
" ".repeat(pos + 4),
"^".repeat(len),
" ".repeat(l.pos + 4),
"^".repeat(l.len),
color::Fg(color::Reset),
)?;
}