Merge "Provide a description for syntax error"
This commit is contained in:
commit
84e83cc430
@ -108,5 +108,6 @@ def parse_expression(expr):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
if result is None:
|
if result is None:
|
||||||
raise SyntaxError()
|
raise SyntaxError(
|
||||||
|
'Syntax is incorrect in expression: {0}'.format(expr))
|
||||||
return result
|
return result
|
||||||
|
Loading…
Reference in New Issue
Block a user