From 30b722447a2f45194d207f261602e3d86837d06e Mon Sep 17 00:00:00 2001 From: Chandan Singh Date: Tue, 23 Oct 2018 12:25:39 +0100 Subject: 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 ..." is kind of awkward to read. --- buildstream/_pipeline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- cgit v1.2.1