summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-01-11 21:58:26 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-01-11 22:40:15 +0900
commitc7ed4376481f0d6795de8bf5d3fc66ff495eb82d (patch)
tree8e6f013f3552d88334199957cd4bd5ce7f12498d
parent6af85a86913a0bc7f0b59b54a555b53dc4410175 (diff)
downloadbuildstream-c7ed4376481f0d6795de8bf5d3fc66ff495eb82d.tar.gz
_pipeline.py: Only raise the error for inconsistent pipeline
Dont make the ERROR message explicitly anymore, leave that to the frontend to sort out.
-rw-r--r--buildstream/_pipeline.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/buildstream/_pipeline.py b/buildstream/_pipeline.py
index 28e64c78f..cb7e0ed5e 100644
--- a/buildstream/_pipeline.py
+++ b/buildstream/_pipeline.py
@@ -230,8 +230,7 @@ class Pipeline():
"Try tracking these elements first with `bst track`\n\n"
for element in inconsistent:
detail += " " + element.name + "\n"
- self.message(MessageType.ERROR, "Inconsistent pipeline", detail=detail)
- raise PipelineError(reason="inconsistent-pipeline")
+ raise PipelineError("Inconsistent pipeline", detail=detail, reason="inconsistent-pipeline")
# Generator function to iterate over only the elements
# which are required to build the pipeline target, omitting