aboutsummaryrefslogtreecommitdiffstats
path: root/config/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'config/config.go')
-rw-r--r--config/config.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/config.go b/config/config.go
index 7aff1eaf..e5e332e7 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
}