|
|
|
@ -49,6 +49,7 @@ func (l Location) validate(c *Config) error {
|
|
|
|
|
if l.From == "" {
|
|
|
|
|
return fmt.Errorf(`Location "%s" is missing "from" key`, l.name)
|
|
|
|
|
}
|
|
|
|
|
if l.getType() == TypeLocal {
|
|
|
|
|
if from, err := GetPathRelativeToConfig(l.From); err != nil {
|
|
|
|
|
return err
|
|
|
|
|
} else {
|
|
|
|
@ -60,6 +61,7 @@ func (l Location) validate(c *Config) error {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if len(l.To) == 0 {
|
|
|
|
|
return fmt.Errorf(`Location "%s" has no "to" targets`, l.name)
|
|
|
|
|