[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)
|
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()
|
||||||
|
|
||||||
|
@ -131,9 +131,10 @@ 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
|
||||||
debug.info(" ==========================")
|
if ret < 0:
|
||||||
debug.info(" == Some error occured ==")
|
debug.info(" ==========================")
|
||||||
debug.info(" ==========================")
|
debug.info(" == Some error occured ==")
|
||||||
|
debug.info(" ==========================")
|
||||||
return ret
|
return ret
|
||||||
debug.error("Can not do the action...")
|
debug.error("Can not do the action...")
|
||||||
return -10
|
return -10
|
||||||
|
Loading…
x
Reference in New Issue
Block a user