Some tweaks about errors
This commit is contained in:
parent
3ef88ef28d
commit
7f78754c1d
2
dns.go
2
dns.go
|
@ -93,7 +93,7 @@ type Error struct {
|
|||
|
||||
func (e *Error) Error() string {
|
||||
if e == nil {
|
||||
return "<nil>"
|
||||
return "dns: <nil>"
|
||||
}
|
||||
if e.Name == "" {
|
||||
return e.Err
|
||||
|
|
Loading…
Reference in New Issue