Fix review comments
Fixed coredns plugin tests Check that user filter is not empty
This commit is contained in:
3
app.go
3
app.go
@@ -149,6 +149,7 @@ func main() {
|
||||
filter := &config.Filters[i]
|
||||
err = filter.load()
|
||||
if err != nil {
|
||||
// This is okay for the first start, the filter will be loaded later
|
||||
log.Printf("Couldn't load filter %d contents due to %s", filter.ID, err)
|
||||
}
|
||||
}
|
||||
@@ -264,7 +265,7 @@ func upgradeConfig() error {
|
||||
}
|
||||
|
||||
if config.SchemaVersion > SchemaVersion {
|
||||
// Unexpected -- config file is newer than the
|
||||
// Unexpected -- the config file is newer than we expect
|
||||
return fmt.Errorf("configuration file is supposed to be used with a newer version of AdGuard Home, schema=%d", config.SchemaVersion)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user