fix: better error return
This commit is contained in:
parent
dbbd499349
commit
6d89bddf29
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@ func (doh *dnsOverHTTPS) ExchangeContext(ctx context.Context, m *D.Msg) (msg *D.
|
|||
// If the request failed anyway, make sure we don't use this client.
|
||||
_, resErr := doh.resetClient(ctx, err)
|
||||
|
||||
return nil, fmt.Errorf("err:%v,resErr:%v", err, resErr)
|
||||
return nil, fmt.Errorf("%w (resErr:%v)", err, resErr)
|
||||
}
|
||||
|
||||
return msg, err
|
||||
|
|
Loading…
Reference in a new issue