diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-06-20 14:35:25 +0100 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-06-22 11:39:06 +0100 |
commit | ad52cf3a15054a06f4140d200dbc7ce253a814d9 (patch) | |
tree | 7d9e5207eca308bcf769710dc646a107f3f172ff /morphlib/remoteartifactcache.py | |
parent | 8bca8d9439f0118f831475f2ac1192e52745ac6e (diff) | |
download | morph-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.py | 5 |
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): |