Refine error message.
This commit is contained in:
@@ -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,
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user