forked from uncloud/uncloud
Exit code == 1 in case we died with an exception
This commit is contained in:
parent
48efcdf08c
commit
feb334cf04
1 changed files with 2 additions and 1 deletions
|
@ -40,7 +40,6 @@ if __name__ == '__main__':
|
|||
if not args.command:
|
||||
arg_parser.print_help()
|
||||
else:
|
||||
|
||||
# if we start etcd in seperate process with default settings
|
||||
# i.e inheriting few things from parent process etcd3 module
|
||||
# errors out, so the following command configure multiprocessing
|
||||
|
@ -54,5 +53,7 @@ if __name__ == '__main__':
|
|||
main(**arguments)
|
||||
except UncloudException as err:
|
||||
logger.error(err)
|
||||
sys.exit(1)
|
||||
except Exception as err:
|
||||
logger.exception(err)
|
||||
sys.exit(1)
|
||||
|
|
Loading…
Reference in a new issue