Skip to content

Commit cc61bf3

Browse files
committed
improve error message
1 parent 80a40e9 commit cc61bf3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

crates/felt-macro/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,11 +198,11 @@ fn handle_expr_unary(expr_unary: &ExprUnary) -> Result<HandleExprOutput> {
198198
true => LambdaFieldElement::from(&UnsignedInteger::from_u64(0)),
199199
})),
200200
Expr::Lit(ExprLit {
201-
lit: Lit::Int(_lit_int),
201+
lit: Lit::Int(_) | Lit::Byte(_),
202202
..
203203
}) => Err(Error::new_spanned(
204204
expr,
205-
"The `!` logical inversion operator is applicable to the `Felt` type",
205+
"The `!` logical inversion operator is not applicable to the `Felt` type",
206206
)),
207207
Expr::Lit(_) => Err(Error::new_spanned(
208208
expr,

0 commit comments

Comments
 (0)