Improve error message when invoked on non-rpm files.

git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1042 9bc8b190-ac0f-0410-8968-dc7d1f502856
This commit is contained in:
Ville Skyttä 2005-11-22 19:37:22 +00:00
parent e388292f99
commit 22a3c3c8b3
1 changed files with 4 additions and 0 deletions

View File

@ -71,6 +71,10 @@ def main():
except KeyboardInterrupt:
sys.stderr.write('Interrupted, exiting while reading ' + f + '\n')
sys.exit(2)
except rpm.error, e:
sys.stderr.write('Error while reading %s: %s\n' % (f, e))
pkg=None
continue
except:
sys.stderr.write('Error while reading ' + f + '\n')
pkg=None