mirror of
https://github.com/SELinuxProject/selinux
synced 2025-05-08 02:28:05 +00:00
python/audit2allow/sepolgen-ifgen: show errors on stderr
This allows test_audit2allow.py to display the errors correctly. Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
This commit is contained in:
parent
c759912227
commit
621c406585
@ -135,8 +135,7 @@ def main():
|
|||||||
try:
|
try:
|
||||||
headers = refparser.parse_headers(options.headers, output=log, debug=options.debug)
|
headers = refparser.parse_headers(options.headers, output=log, debug=options.debug)
|
||||||
except ValueError as e:
|
except ValueError as e:
|
||||||
print("error parsing headers")
|
sys.stderr.write("error parsing headers: %s\n" % e)
|
||||||
print(str(e))
|
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
if_set = interfaces.InterfaceSet(output=log)
|
if_set = interfaces.InterfaceSet(output=log)
|
||||||
|
Loading…
Reference in New Issue
Block a user