diff options
author | Jim MacArthur <jim.macarthur@codethink.co.uk> | 2018-04-03 17:43:25 +0100 |
---|---|---|
committer | Jim MacArthur <jim.macarthur@codethink.co.uk> | 2018-04-09 10:49:27 +0100 |
commit | 8bfc737125989fa2445d7ce217124f5cafb02db1 (patch) | |
tree | 8f04f47971d7f627028072a4341bcd7d7a17ae59 /buildstream/_ostree.py | |
parent | e0a8b9e52f3e36619be8f4f39942f2f277a188e5 (diff) | |
download | buildstream-8bfc737125989fa2445d7ce217124f5cafb02db1.tar.gz |
_ostree.py: Mention the remote URL when we fail to fetch remote refs
Diffstat (limited to 'buildstream/_ostree.py')
-rw-r--r-- | buildstream/_ostree.py | 3 |
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 |