summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-10-14 20:44:21 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-10-14 20:44:21 +0900
commitc6826a167d468336d0534ee84efa2b4e4b289128 (patch)
tree36ba36b49720f000281d2e3f67e86ba2453e1b55
parentbed926b0d8bced4a058f72656214a8febc9db1b0 (diff)
downloadbuildstream-c6826a167d468336d0534ee84efa2b4e4b289128.tar.gz
git.py source plugin: More informative error when missing track & ref
-rw-r--r--buildstream/plugins/sources/git.py2
1 files changed, 1 insertions, 1 deletions
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