mirror of
https://github.com/Karmaz95/Snake_Apple.git
synced 2026-08-13 21:30:18 +02:00
Print errors to stderr instead of stdout
This commit is contained in:
@@ -54,9 +54,9 @@ class SnakeHatchery:
|
|||||||
self.binaryInit()
|
self.binaryInit()
|
||||||
|
|
||||||
if binaries is None and bundle_processor is None:
|
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).')
|
sys.stderr.write('QUITING: The file used in -p is not a valid Mach-O and you did not specify a bundle (-b).\n')
|
||||||
print('It will only work if bundle is specified AND|OR file is a valid Mach-O.')
|
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 macho and bundle is not specified
|
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.
|
global snake_instance # Must be global for further processors classes.
|
||||||
snake_instance = self.snake_class(binaries, self.file_path)
|
snake_instance = self.snake_class(binaries, self.file_path)
|
||||||
|
|||||||
Reference in New Issue
Block a user