[Yum-devel] [PATCH] Report IOError while setting self.conf. BZ 734907

Zdenek Pavlas zpavlas at redhat.com
Tue Sep 6 14:54:24 UTC 2011

>> +        except IOError, e:
>> +            e = '%s: %s' % (to_unicode(e.args[1]), repr(e.filename))
>> +            self.logger.critical(_('Config Error: %s'), e)

> Hmm, I'm not sure this is a "Config Error" (I read that as "you have an
> error in your configuration files"), but rather a "System Error" or
> whatever else we might call it when yum can't read a file (which should
> be readable normally). Otherwise this looks good to me.

It's i18n-ed, so I just reused the closest one to save some work later,
but I agree it's really a bit off.  Maybe drop the prefix altogether, as

- CRITICAL:yum.cli:Config Error: Permission denied: '///var/lib/yum/uuid'
+ CRITICAL:yum.cli:Permission denied: '///var/lib/yum/uuid'

is clear enough?

Nils Philippsen      "Those who would give up Essential Liberty to purchase 
Red Hat               a little Temporary Safety, deserve neither Liberty
nils at redhat.com       nor Safety."  --  Benjamin Franklin, 1759
PGP fingerprint:      C4A8 9474 5C4C ADE3 2B8F  656D 47D8 9B65 6951 3011

Yum-devel mailing list
Yum-devel at lists.baseurl.org

More information about the Yum-devel mailing list