Revise error for reporting

This commit is contained in:
Richard Feldman 2020-04-03 00:48:00 -04:00
parent 930f83a283
commit 67b7be9786
2 changed files with 39 additions and 20 deletions

View file

@ -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 isnt.
1 if "foo" then 2 else 3
^^^^^
It is a string of type:
Instead its a string of type:
Str
But I need this `if` condition to be a Bool value.
`if` conditions must evaluate to a Booleither `True` or `False`.
"#
),