mirror of
https://github.com/coredns/coredns.git
synced 2026-05-26 03:40:23 -04:00
lint(errorlint): handle wrapped errors
Enable errorlint and preserve wrapped error chains so runtime checks and tests classify failures correctly. This also makes Route53 surface insert failures instead of silently dropping them. Signed-off-by: Ville Vesilehto <ville@vesilehto.fi>
This commit is contained in:
@@ -57,7 +57,7 @@ func autoPathParse(c *caddy.Controller) (*AutoPath, string, error) {
|
||||
// assume file on disk
|
||||
rc, err := dns.ClientConfigFromFile(resolv)
|
||||
if err != nil {
|
||||
return ap, "", fmt.Errorf("failed to parse %q: %v", resolv, err)
|
||||
return ap, "", fmt.Errorf("failed to parse %q: %w", resolv, err)
|
||||
}
|
||||
ap.search = rc.Search
|
||||
plugin.Zones(ap.search).Normalize()
|
||||
|
||||
Reference in New Issue
Block a user