From c7ed4376481f0d6795de8bf5d3fc66ff495eb82d Mon Sep 17 00:00:00 2001 From: Tristan Van Berkom Date: Thu, 11 Jan 2018 21:58:26 +0900 Subject: _pipeline.py: Only raise the error for inconsistent pipeline Dont make the ERROR message explicitly anymore, leave that to the frontend to sort out. --- buildstream/_pipeline.py | 3 +-- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.1