aboutsummaryrefslogtreecommitdiffstats
path: root/config/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'config/config.go')
-rw-r--r--config/config.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/config.go b/config/config.go
index bb83579c..87d183a4 100644
--- a/config/config.go
+++ b/config/config.go
@@ -216,6 +216,9 @@ func loadAccountConfig(path string) ([]AccountConfig, error) {
if account.Source == "" {
return nil, fmt.Errorf("Expected source for account %s", _sec)
}
+ if account.From == "" {
+ return nil, fmt.Errorf("Expected from for account %s", _sec)
+ }
source, err := parseCredential(account.Source, account.SourceCredCmd)
if err != nil {