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:
Nicolas Iooss 2018-12-21 21:43:32 +01:00 committed by Petr Lautrbach
parent c759912227
commit 621c406585
1 changed files with 1 additions and 2 deletions

View File

@ -135,8 +135,7 @@ def main():
try:
headers = refparser.parse_headers(options.headers, output=log, debug=options.debug)
except ValueError as e:
print("error parsing headers")
print(str(e))
sys.stderr.write("error parsing headers: %s\n" % e)
return 1
if_set = interfaces.InterfaceSet(output=log)