diff --git a/crates/reporting/src/error/parse.rs b/crates/reporting/src/error/parse.rs index c2bb472208..f4fc47bd5a 100644 --- a/crates/reporting/src/error/parse.rs +++ b/crates/reporting/src/error/parse.rs @@ -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 { diff --git a/crates/reporting/tests/test_reporting.rs b/crates/reporting/tests/test_reporting.rs index 7da6281105..8f6bfc295f 100644 --- a/crates/reporting/tests/test_reporting.rs +++ b/crates/reporting/tests/test_reporting.rs @@ -4604,7 +4604,8 @@ mod test_reporting { 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? "### );