mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41:12 +00:00
Update error text
fix error text
This commit is contained in:
parent
f323fe6534
commit
ab000a5b49
2 changed files with 6 additions and 4 deletions
|
@ -535,9 +535,10 @@ fn to_expr_report<'a>(
|
||||||
let doc = alloc.stack(vec![
|
let doc = alloc.stack(vec![
|
||||||
alloc.reflow(r"I am partway through parsing an expression, but I got stuck here:"),
|
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.region_with_subregion(lines.convert_region(surroundings), region),
|
||||||
alloc.concat(vec![alloc.reflow(
|
alloc.concat(vec![
|
||||||
"Looks like the indentation ends prematurely after an expression",
|
alloc.reflow("Looks like the indentation ends prematurely here. "),
|
||||||
)]),
|
alloc.reflow("Did you mean to have another expression after this line?"),
|
||||||
|
]),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
Report {
|
Report {
|
||||||
|
|
|
@ -4604,7 +4604,8 @@ mod test_reporting {
|
||||||
4│ f <- Foo.foo
|
4│ f <- Foo.foo
|
||||||
^
|
^
|
||||||
|
|
||||||
Looks like the indentation ends prematurely after an expression
|
Looks like the indentation ends prematurely here. Did you mean to have
|
||||||
|
another expression after this line?
|
||||||
"###
|
"###
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue