wrapcheck fix
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
grumbulon 2022-09-16 19:47:03 -04:00
parent faa8ac55f2
commit 323a99b652

View file

@ -12,11 +12,6 @@ import (
"github.com/miekg/dns"
)
const (
tcp = "tcp"
udp = "udp"
)
// CreateQuery creates a DNS query from the options given.
// It sets query flags and EDNS flags from the respective options.
func CreateQuery(opts util.Options) (util.Response, error) {
@ -140,7 +135,7 @@ func CreateQuery(opts util.Options) (util.Response, error) {
resolver, err := resolvers.LoadResolver(opts)
if err != nil {
return util.Response{}, err
return util.Response{}, fmt.Errorf("unable to load resolvers: %v", err)
}
opts.Logger.Info("Query successfully loaded")