From 32f128a78635c8eb68d28df9804fb157901e8cbd Mon Sep 17 00:00:00 2001 From: Shulhan Date: Tue, 29 Jan 2019 04:44:26 +0700 Subject: lib/dns: uncapitalized the first letter of error messages --- lib/dns/dns.go | 10 +++++----- lib/dns/server_options.go | 2 +- 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 } -- cgit v1.3