Skip to content

Commit

Permalink
Add error context for upstream name servers validation
Browse files Browse the repository at this point in the history
  • Loading branch information
tangenti committed Aug 24, 2022
1 parent cb31ac0 commit 2873ada
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/dns/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func (config *Config) ValidateNodeLocalCacheConfig() error {
}
}
if err := validateForwardProxy(config.UpstreamNameservers...); err != nil {
return err
return fmt.Errorf("invalid upstream nameservers %s: %v", config.UpstreamNameservers, err)
}
return nil
}
Expand Down

0 comments on commit 2873ada

Please sign in to comment.