Skip to content

Commit

Permalink
config: remind user that no default account was set
Browse files Browse the repository at this point in the history
  • Loading branch information
sauterp committed Apr 22, 2024
1 parent 3b73a9d commit 7e6d6c6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@ func saveConfig(filePath string, newAccounts *account.Config) error {
}

conf.DefaultAccount = gConfig.Get("defaultAccount").(string)
if conf.DefaultAccount == "" {
fmt.Println("no default account set")
}

account.GAllAccount = conf

return nil
Expand Down

0 comments on commit 7e6d6c6

Please sign in to comment.