Return an error if we encounter an unknown operator

This commit is contained in:
Elara 2023-12-22 15:45:28 -08:00
parent 4309bcc3b4
commit 3879e207fc
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}