Permalink
Browse files

Add a missing error message, silencing stack trace.

  • Loading branch information...
Andy Chu
Andy Chu committed Oct 19, 2017
1 parent 2371058 commit 4ac4dc87e98d4295dbd9ad05e0ff85d4629c77fd
Showing with 2 additions and 0 deletions.
  1. +2 −0 osh/arith_parse.py
View
@@ -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

Please sign in to comment.