From fbbe5c158cd12a642ba8ce4eaa91e5a5c7912522 Mon Sep 17 00:00:00 2001 From: Tristan Van Berkom Date: Sun, 1 Oct 2017 16:53:35 +0900 Subject: exceptions.py: Added LoadErrorReason.EXPRESSION_FAILED For handling failed jinja2 expression evaluation. --- buildstream/exceptions.py | 3 +++ 1 file changed, 3 insertions(+) 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. -- cgit v1.2.1