From a3b4d09652e5a075c458249ab0598c5e856d13da Mon Sep 17 00:00:00 2001 From: Pragyansh Chaturvedi Date: Sun, 12 Oct 2025 09:13:04 +0530 Subject: [PATCH] Fix errorstring in _handle_unary_op --- pythonbpf/expr/expr_pass.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pythonbpf/expr/expr_pass.py b/pythonbpf/expr/expr_pass.py index bbb7277..e0e0fed 100644 --- a/pythonbpf/expr/expr_pass.py +++ b/pythonbpf/expr/expr_pass.py @@ -177,7 +177,7 @@ def _handle_unary_op( ): """Handle ast.UnaryOp expressions.""" if not isinstance(expr.op, ast.Not) and not isinstance(expr.op, ast.USub): - logger.error("Only 'not' unary operator is supported") + logger.error("Only 'not' and '-' unary operators are supported") return None operand = eval_expr(