make the errors tell the user more about where the issue is. fixes https://bugzilla.redhat.com/show_bug.cgi?id=620101 --- yum/__init__.py | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/yum/__init__.py b/yum/__init__.py index 3f87f50..bb5eb64 100644 --- a/yum/__init__.py +++ b/yum/__init__.py @@ -447,7 +447,11 @@ class YumBase(depsolve.Depsolve): @return: YumRepository instance. ''' repo = yumRepo.YumRepository(section) - repo.populate(parser, section, self.conf) + try: + repo.populate(parser, section, self.conf) + except ValueError, e: + msg = _('Repository %r: Error parsing config: %s' % (section,e)) + raise Errors.ConfigError, msg # Ensure that the repo name is set if not repo.name: -- 1.7.2 _______________________________________________ Yum-devel mailing list Yum-devel@lists.baseurl.org http://lists.baseurl.org/mailman/listinfo/yum-devel