diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/config.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/config/config.go b/config/config.go index 7aff1ea..e5e332e 100644 --- a/config/config.go +++ b/config/config.go @@ -93,6 +93,10 @@ func loadAccountConfig(path string) ([]AccountConfig, error) { } accounts = append(accounts, account) } + if len(accounts) == 0 { + err = errors.New("No accounts configured in accounts.conf") + return nil, err + } return accounts, nil } |