Improve error handling

Provide a better error in case of operator missing
master
Salvo 'LtWorf' Tomaselli 2015-09-09 17:28:12 +07:00
parent c30456c43e
commit 6c8b60cf34
1 changed files with 1 additions and 1 deletions

@ -165,7 +165,7 @@ class Node (object):
self.child = node(expression[2 + i])
return
raise ParserException(u"Unable to parse tokens")
raise ParserException("Expected operator in '%s'" % ' '.join(expression))
pass
def toCode(self):