Permalink
Browse files
Add a missing error message, silencing stack trace.
- Loading branch information...
Showing
with
2 additions
and
0 deletions.
-
+2
−0
osh/arith_parse.py
|
|
@@ -18,6 +18,8 @@ def NullIncDec(p, w, bp): |
|
|
""" ++x or ++x[1] """
|
|
|
right = p.ParseUntil(bp)
|
|
|
child = tdop.ToLValue(right)
|
|
|
if child is None:
|
|
|
p_die("This value can't be assigned to", word=w)
|
|
|
return ast.UnaryAssign(word.ArithId(w), child)
|
|
|
|
|
|
|
|
|
|
0 comments on commit
4ac4dc8