mirror of
https://github.com/syncthing/syncthing.git
synced 2024-11-15 18:08:45 -07:00
This commit is contained in:
parent
690b55360f
commit
a64ae36bcc
@ -2976,6 +2976,16 @@ func (*model) VerifyConfiguration(from, to config.Configuration) error {
|
||||
return errors.New("folder type must not be changed from/to receive-encrypted")
|
||||
}
|
||||
}
|
||||
|
||||
// Verify that any requested versioning is possible to construct, or we
|
||||
// will panic later when starting the folder.
|
||||
for _, to := range to.Folders {
|
||||
if to.Versioning.Type != "" {
|
||||
if _, err := versioner.New(to); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user