]> git.ipfire.org Git - pakfire.git/commitdiff
repositories: Add name of the repository to the exception.
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 15 Dec 2012 18:15:46 +0000 (19:15 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 15 Dec 2012 18:15:46 +0000 (19:15 +0100)
python/pakfire/repository/__init__.py

index c4d94bd824fa925d080db56bde954c211a4bd6ba..ba07bf2618885fd0ce27ded44317df56712d944e 100644 (file)
@@ -155,7 +155,7 @@ class Repositories(object):
 
        def add_repo(self, repo):
                if self.__repos.has_key(repo.name):
-                       raise Exception, "Repository with that name does already exist."
+                       raise Exception, "Repository with that name does already exist: %s" % repo.name
 
                self.__repos[repo.name] = repo