Skip to content
Snippets Groups Projects
Commit 9caf038c authored by Seblu's avatar Seblu
Browse files

more precise message when image is not found

parent 2234f620
No related branches found
No related tags found
No related merge requests found
......@@ -589,13 +589,13 @@ class RepositoryManager(object):
for repo in self.repos:
lv = max(lv, repo.last(name))
if lv < 0:
raise Exception("Unable to find last version of %s" % name)
raise Exception("Unable to find image %s" % name)
version = lv
# search image in repos
for repo in self.repos:
if repo.has(name, version):
return repo.get(name, version), repo
raise Exception("Unable to find %s v%s" % (name, version))
raise Exception("Unable to find image %s v%s" % (name, version))
def show(self, verbose=False):
'''
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment