Merge "Provide a description for syntax error"

This commit is contained in:
Jenkins 2014-09-03 12:22:59 +00:00 committed by Gerrit Code Review
commit 84e83cc430

View File

@ -108,5 +108,6 @@ def parse_expression(expr):
continue
if result is None:
raise SyntaxError()
raise SyntaxError(
'Syntax is incorrect in expression: {0}'.format(expr))
return result