- give error message about config file loading failure, and give the correct file that failed.

git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1214 9bc8b190-ac0f-0410-8968-dc7d1f502856
This commit is contained in:
Michael Scherer 2006-06-28 14:38:37 +00:00 committed by Ville Skyttä
parent 57744bcce1
commit 37595759c4
1 changed files with 4 additions and 4 deletions

View File

@ -184,8 +184,8 @@ for f in ('/usr/share/rpmlint/config','/etc/rpmlint/config'):
execfile(f)
except IOError:
pass
except:
sys.stderr.write('Error loading %s, skipping\n' % conf_file)
except Exception, E:
sys.stderr.write('Error loading %s, skipping\n' % (f, E))
# pychecker fix
del f
@ -228,8 +228,8 @@ try:
execfile(os.path.expanduser(conf_file))
except IOError:
pass
except:
sys.stderr.write('Error loading %s, skipping\n' % conf_file)
except Exception,E:
sys.stderr.write('Error loading %s, skipping : %s\n' % (conf_file, E ))
if not extract_dir:
extract_dir=Config.getOption('ExtractDir', '/tmp')