From 26d315b032345991c0bd9988fa1d6aadc03592b3 Mon Sep 17 00:00:00 2001 From: Carlosokumu Date: Tue, 15 Oct 2024 13:42:20 +0300 Subject: [PATCH] add check for api call failure --- services/registration/main.vis | 1 + services/registration/root.vis | 2 ++ 2 files changed, 3 insertions(+) diff --git a/services/registration/main.vis b/services/registration/main.vis index d883dca..0379078 100644 --- a/services/registration/main.vis +++ b/services/registration/main.vis @@ -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 diff --git a/services/registration/root.vis b/services/registration/root.vis index 6e3b79d..02ef9e9 100644 --- a/services/registration/root.vis +++ b/services/registration/root.vis @@ -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