Minor update

This commit is contained in:
TwinProduction 2020-11-19 21:10:59 -05:00
parent faff3dc8de
commit 3a13dce3f0

View File

@ -10,7 +10,7 @@ import (
var (
// ErrDNSWithNoQueryName is the error with which gatus will panic if a dns is configured without query name
ErrDNSWithNoQueryName = errors.New("you must specify query name for DNS")
ErrDNSWithNoQueryName = errors.New("you must specify a query name for DNS")
// ErrDNSWithInvalidQueryType is the error with which gatus will panic if a dns is configured with invalid query type
ErrDNSWithInvalidQueryType = errors.New("invalid query type")
)
@ -30,7 +30,6 @@ func (d *DNS) validateAndSetDefault() {
if len(d.QueryName) == 0 {
panic(ErrDNSWithNoQueryName)
}
if !strings.HasSuffix(d.QueryName, ".") {
d.QueryName += "."
}