aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/account-wizard.go
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/account-wizard.go')
-rw-r--r--widgets/account-wizard.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/widgets/account-wizard.go b/widgets/account-wizard.go
index 59f22e78..f47e97e1 100644
--- a/widgets/account-wizard.go
+++ b/widgets/account-wizard.go
@@ -534,8 +534,13 @@ func (wizard *AccountWizard) finish(tutorial bool) {
}
wizard.conf.Accounts = append(wizard.conf.Accounts, account)
- view := NewAccountView(wizard.aerc, wizard.conf, &account,
+ view, err := NewAccountView(wizard.aerc, wizard.conf, &account,
wizard.aerc.logger, wizard.aerc)
+ if err != nil {
+ wizard.aerc.NewTab(errorScreen(err.Error(), wizard.conf.Ui),
+ account.Name)
+ return
+ }
wizard.aerc.accounts[account.Name] = view
wizard.aerc.NewTab(view, account.Name)