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])
|
self.child = node(expression[2 + i])
|
||||||
|
|
||||||
return
|
return
|
||||||
raise ParserException(u"Unable to parse tokens")
|
raise ParserException("Expected operator in '%s'" % ' '.join(expression))
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def toCode(self):
|
def toCode(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user