mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
improve error message for <|
operator non-existence
This commit is contained in:
parent
98d0742c62
commit
a806ea1a5b
1 changed files with 7 additions and 0 deletions
|
@ -300,6 +300,13 @@ fn to_expr_report<'a>(
|
|||
alloc.parser_suggestion("!"),
|
||||
alloc.reflow(" and the expression after it."),
|
||||
],
|
||||
"<|" => vec![
|
||||
alloc.reflow("Roc doesn't have "),
|
||||
alloc.parser_suggestion("<|"),
|
||||
alloc.reflow(" operator. Please use parentheses or "),
|
||||
alloc.parser_suggestion("|>"),
|
||||
alloc.reflow(" operator instead."),
|
||||
],
|
||||
_ => vec![
|
||||
alloc.reflow("I have no specific suggestion for this operator, "),
|
||||
alloc.reflow("see TODO for the full list of operators in Roc."),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue