Files
routedns/errors.go
2019-06-07 19:22:06 -06:00

17 lines
276 B
Go

package rdns
import (
"fmt"
"github.com/miekg/dns"
)
// QueryTimeoutError is returned when a query times out.
type QueryTimeoutError struct {
query *dns.Msg
}
func (e QueryTimeoutError) Error() string {
return fmt.Sprintf("query for '%s' timed out", qName(e.query))
}