Skip to content

Commit 28b1645

Browse files
authored
Fix in.Rcode type for fmt.Errorf() (#542)
in.Rcode returns an int. This resolves build issue: ./va.go:845:80: fmt.Errorf format %q has arg in.Rcode of wrong type int
1 parent e4c1c32 commit 28b1645

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

va/va.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,7 @@ func (va VAImpl) getTXTEntry(name string) ([]string, error) {
842842
}
843843

844844
if in.Rcode != dns.RcodeSuccess {
845-
return nil, fmt.Errorf("DNS lookup for %q returned an unsuccessful response: %q", name, in.Rcode)
845+
return nil, fmt.Errorf("DNS lookup for %q returned an unsuccessful response: %d", name, in.Rcode)
846846
}
847847

848848
for _, record := range in.Answer {

0 commit comments

Comments
 (0)