Skip to content
Snippets Groups Projects
Commit 9e22f69a authored by William Salmon's avatar William Salmon
Browse files

Improve error message for build if there are refs missing

parent 836e514d
No related branches found
No related tags found
Loading
Pipeline #28056782 passed
......@@ -358,10 +358,15 @@ class Pipeline():
inconsistent.append(element)
if inconsistent:
detail = "Exact versions are missing for the following elements\n" + \
"Try tracking these elements first with `bst track`\n\n"
detail = "Exact versions are missing for the following elements:\n\n"
for element in inconsistent:
detail += " " + element._get_full_name() + "\n"
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 += '\n'
detail += "Try tracking these elements first with `bst track`\n"
raise PipelineError("Inconsistent pipeline", detail=detail, reason="inconsistent-pipeline")
#############################################################
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment