From c6826a167d468336d0534ee84efa2b4e4b289128 Mon Sep 17 00:00:00 2001 From: Tristan Van Berkom Date: Sat, 14 Oct 2017 20:44:21 +0900 Subject: git.py source plugin: More informative error when missing track & ref --- buildstream/plugins/sources/git.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildstream/plugins/sources/git.py b/buildstream/plugins/sources/git.py index 7610846b3..b3e22494a 100644 --- a/buildstream/plugins/sources/git.py +++ b/buildstream/plugins/sources/git.py @@ -229,7 +229,7 @@ class GitSource(Source): self.submodule_overrides[path] = self.node_get_member(submodule, str, 'url') if not (ref or self.tracking): - raise SourceError("Must specify either 'ref' or 'track' parameters") + raise SourceError("{}: Must specify either 'ref' or 'track' parameters".format(self)) def preflight(self): # Check if git is installed, get the binary at the same time -- cgit v1.2.1