diff --git a/Wino.Mail.ViewModels/AccountManagementViewModel.cs b/Wino.Mail.ViewModels/AccountManagementViewModel.cs index 03e483de..4495cd37 100644 --- a/Wino.Mail.ViewModels/AccountManagementViewModel.cs +++ b/Wino.Mail.ViewModels/AccountManagementViewModel.cs @@ -163,6 +163,9 @@ namespace Wino.Mail.ViewModels if (creationDialog.State == AccountCreationDialogState.Canceled) throw new AccountSetupCanceledException(); + if (!tokenInformationResponse.IsSuccess) + throw new Exception(tokenInformationResponse.Message); + createdAccount.Address = tokenInformationResponse.Data.AccountAddress; tokenInformationResponse.ThrowIfFailed();