From c335fe6cb84a014157534baa04b3d5c8e199ea91 Mon Sep 17 00:00:00 2001 From: Ekaterina Fedorova Date: Wed, 27 Aug 2014 15:12:10 +0400 Subject: [PATCH] Provide a description for syntax error Before this change, 'None' was reported without additional information Now the reason of error and expression, where it's occurred reported successfully Change-Id: I1615319957ed0ebf89375eefa75798112cb28563 Partly-Closes-Bug: #1342403 --- murano/dsl/expressions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/murano/dsl/expressions.py b/murano/dsl/expressions.py index 19cd7c49..85fc738b 100644 --- a/murano/dsl/expressions.py +++ b/murano/dsl/expressions.py @@ -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