summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChandan Singh <csingh43@bloomberg.net>2018-10-23 12:25:39 +0100
committerChandan Singh <chandan@chandansingh.net>2018-11-19 12:35:01 +0000
commit30b722447a2f45194d207f261602e3d86837d06e (patch)
tree223af6ef4500328ce36f60d4ce2429264493ecd5
parent6f8371187e06955c698486a13e8d4824b9be9433 (diff)
downloadbuildstream-30b722447a2f45194d207f261602e3d86837d06e.tar.gz
buildstream/_pipeline.py: Simplify error message for assert_consistent()
Currently, `Pipeline.assert_consistent()` prints an error message like the one below when certain elements have inconsistent sources: ``` ... Element: hello.bst is inconsistent Source tar source at hello.bst [line 16 column 2] is missing ref ... ``` Drop the word "Source" from the beginning of the message as "Source <source-kind> source ..." is kind of awkward to read.
-rw-r--r--buildstream/_pipeline.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/_pipeline.py b/buildstream/_pipeline.py
index 3baeaa107..a9645aed9 100644
--- a/buildstream/_pipeline.py
+++ b/buildstream/_pipeline.py
@@ -370,7 +370,7 @@ class Pipeline():
detail += " Element: {} is inconsistent\n".format(element._get_full_name())
for source in element.sources():
if source._get_consistency() == Consistency.INCONSISTENT:
- detail += " Source {} is missing ref\n".format(source)
+ detail += " {} is missing ref\n".format(source)
detail += '\n'
detail += "Try tracking these elements first with `bst track`\n"