diff options
Diffstat (limited to 'pkg/config/config.go')
-rw-r--r-- | pkg/config/config.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkg/config/config.go b/pkg/config/config.go index 32f4a71..218ccb3 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -91,6 +91,14 @@ func (cfg *Config) Validate() error { } } + if cfg.Target.EmptyRoot() { + for _, feed := range cfg.Feeds { + if len(feed.Target) == 0 { + return fmt.Errorf("Feed %s: No storage location (target) defined.", feed.Name) + } + } + } + return nil } |