Refine error message.

This commit is contained in:
Stephen Chung
2022-11-27 22:35:17 +08:00
parent fcc7589ffc
commit f458f18ffa
4 changed files with 7 additions and 7 deletions

View File

@@ -13,7 +13,7 @@ fn eprint_error(input: &str, mut err: EvalAltResult) {
// Display position marker
println!(
"{0:>1$}{err_line}",
if i > 0 { " " } else { "^ " },
if i > 0 { "| " } else { "^ " },
line_no.len() + pos.position().unwrap() + 1,
);
}