From 9440691a3a7e3636522d978600e46003cf9c41c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20=C5=9Aliwak?= Date: Tue, 17 Nov 2020 15:09:36 +0100 Subject: [PATCH] splitSources.py: Print errors to stderr --- scripts/splitSources.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/splitSources.py b/scripts/splitSources.py index 68f978da6..0d951dc1f 100755 --- a/scripts/splitSources.py +++ b/scripts/splitSources.py @@ -21,7 +21,7 @@ def uncaught_exception_hook(exc_type, exc_value, exc_traceback): # The script `scripts/ASTImportTest.sh` will interpret return code 3 # as a critical error (because of the uncaught exception) and will # terminate further execution. - print("Unhandled exception: %s", "".join(traceback.format_exception(exc_type, exc_value, exc_traceback))) + print("Unhandled exception: %s", "".join(traceback.format_exception(exc_type, exc_value, exc_traceback)), file=sys.stderr) sys.exit(3) @@ -77,7 +77,7 @@ if __name__ == '__main__': sys.exit(1) except UnicodeDecodeError as ude: - print("UnicodeDecodeError in '" + filePath + "': " + str(ude)) + print("UnicodeDecodeError in '" + filePath + "': " + str(ude), file=sys.stderr) print("This is expected for some tests containing invalid utf8 sequences. " - "Exception will be ignored.") + "Exception will be ignored.", file=sys.stderr) sys.exit(2)