From ab000a5b493ac1b46e5de7555be3d6d95f64de6e Mon Sep 17 00:00:00 2001 From: Tim Whiting Date: Thu, 29 Sep 2022 22:01:48 -0600 Subject: [PATCH] Update error text fix error text --- crates/reporting/src/error/parse.rs | 7 ++++--- crates/reporting/tests/test_reporting.rs | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) 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? "### );