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