add check for api call failure

This commit is contained in:
Carlosokumu 2024-10-15 13:42:20 +03:00
parent 1927544533
commit 26d315b032
Signed by: carlos
GPG Key ID: 7BD6BC8160A5C953
2 changed files with 3 additions and 0 deletions

View File

@ -1,5 +1,6 @@
LOAD check_balance 64
RELOAD check_balance
CATCH api_failure flag_api_call_error 1
MAP check_balance
MOUT send 1
MOUT vouchers 2

View File

@ -1,6 +1,8 @@
CATCH select_language flag_language_set 0
CATCH terms flag_account_created 0
LOAD check_account_status 0
RELOAD check_account_status
CATCH api_failure flag_api_call_error 1
CATCH account_pending flag_account_pending 1
CATCH create_pin flag_pin_set 0
CATCH main flag_account_success 1