give more info about what not found

This commit is contained in:
Faik Uygur
2008-04-03 11:45:53 +00:00
parent 196ed440e1
commit 3c7e7df53b
+1 -1
View File
@@ -38,7 +38,7 @@ class ItemByRepo:
if self.dbobj.has_key(r) and self.dbobj[r].has_key(item): if self.dbobj.has_key(r) and self.dbobj[r].has_key(item):
return r return r
raise Exception(_("Item not found")) raise Exception(_("%s repository not found") % str(item))
def get_item_repo(self, item, repo=None): def get_item_repo(self, item, repo=None):
for r in self.item_repos(repo): for r in self.item_repos(repo):