Improve error handling
Provide a better error in case of operator missing
This commit is contained in:
parent
c30456c43e
commit
6c8b60cf34
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user