[DEV] add return value from execution
This commit is contained in:
parent
59341b9b00
commit
0997e377d2
@ -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()
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user