From 3f50be6a7fefb7cdbdd100479f0a182d24f46680 Mon Sep 17 00:00:00 2001 From: Karmaz95 Date: Thu, 15 Aug 2024 19:49:37 +0200 Subject: [PATCH] Print errors to stderr instead of stdout --- VIII. Sandbox/python/CrimsonUroboros.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/VIII. Sandbox/python/CrimsonUroboros.py b/VIII. Sandbox/python/CrimsonUroboros.py index d15d269..7db29b7 100755 --- a/VIII. Sandbox/python/CrimsonUroboros.py +++ b/VIII. Sandbox/python/CrimsonUroboros.py @@ -54,9 +54,9 @@ class SnakeHatchery: self.binaryInit() if binaries is None and bundle_processor is None: - print('QUITING: The file used in -p is not a valid Mach-O and you did not specify a bundle (-b).') - print('It will only work if bundle is specified AND|OR file is a valid Mach-O.') - exit() # Exit if the file is not valid macho and bundle is not specified + sys.stderr.write('QUITING: The file used in -p is not a valid Mach-O and you did not specify a bundle (-b).\n') + sys.stderr.write('It will only work if bundle is specified AND|OR file is a valid Mach-O.\n') + exit() # Exit if the file is not valid Mach-O and bundle is not specified global snake_instance # Must be global for further processors classes. snake_instance = self.snake_class(binaries, self.file_path)