aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2019-01-29 04:44:26 +0700
committerShulhan <ms@kilabit.info>2019-01-29 04:44:26 +0700
commit32f128a78635c8eb68d28df9804fb157901e8cbd (patch)
treefa8b17152e7caa9420d44fa21a106ab22d72e2a5
parentbf676b267c86eb11e437deb42f889c7e242b7c93 (diff)
downloadpakakeh.go-32f128a78635c8eb68d28df9804fb157901e8cbd.tar.xz
lib/dns: uncapitalized the first letter of error messages
-rw-r--r--lib/dns/dns.go10
-rw-r--r--lib/dns/server_options.go2
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/dns/dns.go b/lib/dns/dns.go
index db1f5161..b634c56f 100644
--- a/lib/dns/dns.go
+++ b/lib/dns/dns.go
@@ -53,11 +53,11 @@ const (
// List of error messages.
//
var (
- ErrNewConnection = errors.New("Lookup: can't create new connection")
- ErrLabelSizeLimit = errors.New("Labels should be 63 octet or less")
- ErrInvalidAddress = errors.New("Invalid address")
- ErrIPv4Length = errors.New("Invalid length of A RDATA format")
- ErrIPv6Length = errors.New("Invalid length of AAAA RDATA format")
+ ErrNewConnection = errors.New("lookup: can't create new connection")
+ ErrLabelSizeLimit = errors.New("labels should be 63 octet or less")
+ ErrInvalidAddress = errors.New("invalid address")
+ ErrIPv4Length = errors.New("invalid length of A RDATA format")
+ ErrIPv6Length = errors.New("invalid length of AAAA RDATA format")
)
var ( // nolint: gochecknoglobals
diff --git a/lib/dns/server_options.go b/lib/dns/server_options.go
index aeb75626..6b55856f 100644
--- a/lib/dns/server_options.go
+++ b/lib/dns/server_options.go
@@ -48,7 +48,7 @@ type ServerOptions struct {
func (opts *ServerOptions) parse() error {
ip := net.ParseIP(opts.IPAddress)
if ip == nil {
- err := fmt.Errorf("Invalid address '%s'", opts.IPAddress)
+ err := fmt.Errorf("invalid address '%s'", opts.IPAddress)
return err
}