summaryrefslogtreecommitdiff
path: root/morphlib/remoteartifactcache.py
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-06-20 14:35:25 +0100
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-06-22 11:39:06 +0100
commitad52cf3a15054a06f4140d200dbc7ce253a814d9 (patch)
tree7d9e5207eca308bcf769710dc646a107f3f172ff /morphlib/remoteartifactcache.py
parent8bca8d9439f0118f831475f2ac1192e52745ac6e (diff)
downloadmorph-ad52cf3a15054a06f4140d200dbc7ce253a814d9.tar.gz
Include cache id in error message
For usefulness when tracing why artifact isn't being found.
Diffstat (limited to 'morphlib/remoteartifactcache.py')
-rw-r--r--morphlib/remoteartifactcache.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/morphlib/remoteartifactcache.py b/morphlib/remoteartifactcache.py
index e2101b5d..ecbb7d3a 100644
--- a/morphlib/remoteartifactcache.py
+++ b/morphlib/remoteartifactcache.py
@@ -29,8 +29,9 @@ class GetError(cliapp.AppException):
def __init__(self, cache, artifact):
cliapp.AppException.__init__(
- self, 'Failed to get the artifact %s from the '
- 'artifact cache %s' % (artifact, cache))
+ self, 'Failed to get the artifact %s with cache key %s '
+ 'from the artifact cache %s' %
+ (artifact, artifact.cache_key, cache))
class GetArtifactMetadataError(cliapp.AppException):