Skip to content

Commit 81a4c29

Browse files
author
wafuwafu13
committed
not supported -> invalid
1 parent d4e5863 commit 81a4c29

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

check-dns/lib/check_dns.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func (opts *dnsOpts) run() *checkers.Checker {
5454

5555
queryType, ok := dns.StringToType[strings.ToUpper(opts.QueryType)]
5656
if !ok {
57-
return checkers.Critical(fmt.Sprintf("%s is not supported query type", opts.QueryType))
57+
return checkers.Critical(fmt.Sprintf("%s is invalid query type", opts.QueryType))
5858
}
5959
queryClass, ok := dns.StringToClass[strings.ToUpper(opts.QueryClass)]
6060
if !ok {

check-dns/lib/check_dns_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func TestCheckDns(t *testing.T) {
6666
{
6767
[]string{"-H", "a.root-servers.net", "-s", "8.8.8.8", "-q", "AAA"},
6868
checkers.CRITICAL,
69-
[]string{"AAA is not supported query type"},
69+
[]string{"AAA is invalid query type"},
7070
},
7171
{
7272
[]string{"-H", "a.root-servers.net", "-s", "8.8.8.8", "-c", "IN"},

0 commit comments

Comments
 (0)