Update error text

fix error text
This commit is contained in:
Tim Whiting 2022-09-29 22:01:48 -06:00
parent f323fe6534
commit ab000a5b49
No known key found for this signature in database
GPG key ID: D6DCB77AE9B1D94C
2 changed files with 6 additions and 4 deletions

View file

@ -535,9 +535,10 @@ fn to_expr_report<'a>(
let doc = alloc.stack(vec![
alloc.reflow(r"I am partway through parsing an expression, but I got stuck here:"),
alloc.region_with_subregion(lines.convert_region(surroundings), region),
alloc.concat(vec![alloc.reflow(
"Looks like the indentation ends prematurely after an expression",
)]),
alloc.concat(vec![
alloc.reflow("Looks like the indentation ends prematurely here. "),
alloc.reflow("Did you mean to have another expression after this line?"),
]),
]);
Report {