summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-07-15 18:05:41 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-07-15 20:12:11 +0900
commit9ce417d1db1934e9ae3de3fffb74a069feceb04a (patch)
tree7bd484ff819099204c03ffacf8d0e72956daaefe
parentf876d30a2130b8373f25d07b0df7d74c3badc392 (diff)
downloadbuildstream-9ce417d1db1934e9ae3de3fffb74a069feceb04a.tar.gz
exceptions.py: Added new LoadErrorReason INVALID_VARIANT
-rw-r--r--buildstream/exceptions.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/buildstream/exceptions.py b/buildstream/exceptions.py
index 039551c16..6d19a5351 100644
--- a/buildstream/exceptions.py
+++ b/buildstream/exceptions.py
@@ -73,10 +73,14 @@ class LoadErrorReason(Enum):
when loading the project.
"""
- CIRCULAR_DEPENDENCY = 6
+ INVALID_VARIANT = 6
+ """A nonexistent variant was requested.
+ """
+
+ CIRCULAR_DEPENDENCY = 7
"""An circular dependency chain was detected"""
- UNRESOLVED_VARIABLE = 7
+ UNRESOLVED_VARIABLE = 8
"""A variable could not be resolved. This can happen if your project
has cyclic dependencies in variable declarations, or, when substituting
a string which refers to an undefined variable.