Added a CATCH if the account creation fails

This commit is contained in:
2024-08-27 13:38:08 +03:00
parent 7e95e7cbb3
commit bf99ed8482
7 changed files with 10 additions and 4 deletions

View File

@@ -64,7 +64,7 @@ func (h *Handlers) CreateAccount(ctx context.Context, sym string, input []byte)
accountResp, err := server.CreateAccount()
if err != nil {
fmt.Println("Failed to create account:", err)
res.FlagSet = append(res.FlagSet, models.USERFLAG_ACCOUNT_CREATION_FAILED)
return res, err
}

View File

@@ -17,4 +17,5 @@ const (
USERFLAG_VALIDPIN
USERFLAG_PINMISMATCH
USERFLAG_INCORRECTDATEFORMAT
USERFLAG_ACCOUNT_CREATION_FAILED
)