[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)
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;
#multiprocess.un_init()

View File

@ -131,9 +131,10 @@ def execute(action_name, argument_start_id):
ret = the_action.execute(my_under_args)
if ret == None:
return 0
debug.info(" ==========================")
debug.info(" == Some error occured ==")
debug.info(" ==========================")
if ret < 0:
debug.info(" ==========================")
debug.info(" == Some error occured ==")
debug.info(" ==========================")
return ret
debug.error("Can not do the action...")
return -10