mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
Revise error for reporting
This commit is contained in:
parent
930f83a283
commit
67b7be9786
2 changed files with 39 additions and 20 deletions
|
@ -766,16 +766,16 @@ mod test_reporting {
|
|||
),
|
||||
indoc!(
|
||||
r#"
|
||||
This `if` condition does not evaluate to a boolean value, True or False.
|
||||
This `if` condition should be a Bool, but it isn’t.
|
||||
|
||||
1 ┆ if "foo" then 2 else 3
|
||||
┆ ^^^^^
|
||||
|
||||
It is a string of type:
|
||||
Instead it’s a string of type:
|
||||
|
||||
Str
|
||||
|
||||
But I need this `if` condition to be a Bool value.
|
||||
`if` conditions must evaluate to a Bool—either `True` or `False`.
|
||||
|
||||
"#
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue