summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim MacArthur <jim.macarthur@codethink.co.uk>2018-04-03 17:43:25 +0100
committerJim MacArthur <jim.macarthur@codethink.co.uk>2018-04-09 10:49:27 +0100
commit8bfc737125989fa2445d7ce217124f5cafb02db1 (patch)
tree8f04f47971d7f627028072a4341bcd7d7a17ae59
parente0a8b9e52f3e36619be8f4f39942f2f277a188e5 (diff)
downloadbuildstream-8bfc737125989fa2445d7ce217124f5cafb02db1.tar.gz
_ostree.py: Mention the remote URL when we fail to fetch remote refs
-rw-r--r--buildstream/_ostree.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/buildstream/_ostree.py b/buildstream/_ostree.py
index b3e19e27d..ab62f6c7d 100644
--- a/buildstream/_ostree.py
+++ b/buildstream/_ostree.py
@@ -534,4 +534,5 @@ def list_remote_refs(repo, remote="origin"):
_, refs = repo.remote_list_refs(remote)
return refs
except GLib.GError as e:
- raise OSTreeError(message=e.message) from e
+ (_, remote_url) = repo.remote_get_url(remote)
+ raise OSTreeError(message="{} when attempting to fetch from {}".format(e.message, remote_url)) from e