about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--config/config.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/config.go b/config/config.go
index bb83579..87d183a 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 {