summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-10-01 16:53:35 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-10-08 17:03:59 +0900
commitfbbe5c158cd12a642ba8ce4eaa91e5a5c7912522 (patch)
treeae680a336d254a252882b95aa28ea6262325b97a
parent0ec8a1e623c07d8096a0aa1118daec0fdf259620 (diff)
downloadbuildstream-fbbe5c158cd12a642ba8ce4eaa91e5a5c7912522.tar.gz
exceptions.py: Added LoadErrorReason.EXPRESSION_FAILED
For handling failed jinja2 expression evaluation.
-rw-r--r--buildstream/exceptions.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/buildstream/exceptions.py b/buildstream/exceptions.py
index b96c43921..49aef8ec8 100644
--- a/buildstream/exceptions.py
+++ b/buildstream/exceptions.py
@@ -84,6 +84,9 @@ class LoadErrorReason(Enum):
UNSUPPORTED_PROJECT = 7
"""BuildStream does not support the required project format version"""
+ EXPRESSION_FAILED = 8
+ """A conditional expression failed to resolve"""
+
class LoadError(_BstError):
"""Raised while loading some YAML.