[DEV] add return value from execution

This commit is contained in:
Edouard DUPIN 2019-08-27 21:56:03 +02:00
parent 59341b9b00
commit 0997e377d2
2 changed files with 6 additions and 4 deletions

View File

@ -213,8 +213,9 @@ if action_to_do != "init" \
exit(-1) exit(-1)
actions.execute(action_to_do, my_args.get_last_parsed()+1) ret = actions.execute(action_to_do, my_args.get_last_parsed()+1)
exit (ret)
# stop all started threads; # stop all started threads;
#multiprocess.un_init() #multiprocess.un_init()

View File

@ -131,6 +131,7 @@ def execute(action_name, argument_start_id):
ret = the_action.execute(my_under_args) ret = the_action.execute(my_under_args)
if ret == None: if ret == None:
return 0 return 0
if ret < 0:
debug.info(" ==========================") debug.info(" ==========================")
debug.info(" == Some error occured ==") debug.info(" == Some error occured ==")
debug.info(" ==========================") debug.info(" ==========================")