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:
parent
e388292f99
commit
22a3c3c8b3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue