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-03 17:43:25 +0100 |
commit | 8c2d449e40d79564b0cc3ca2b877d551119f372a (patch) | |
tree | 5f77fb2017c4108b714bb75e5a179ca792ec7fe0 | |
parent | 18b60dbb9999ff5b96f8791eecfd720dcdd8a610 (diff) | |
download | buildstream-jmac/artifact_cache_error_message.tar.gz |
_ostree.py: Mention the remote URL when we fail to fetch remote refsjmac/artifact_cache_error_message
-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 |