diff --git a/expr.go b/expr.go index e667261..62e6249 100644 --- a/expr.go +++ b/expr.go @@ -172,5 +172,5 @@ func (t *Template) performOp(a, b reflect.Value, op ast.Operator) (any, error) { return false, nil } } - return false, nil + return false, ast.PosError(op, "unknown operator: %q", op.Value) }