chore(Refactor) #110

Merged
grumbulon merged 15 commits from refactor into master 2022-09-24 23:11:10 +00:00
Showing only changes of commit 323a99b652 - Show all commits

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")