fix: better error return

This commit is contained in:
gVisor bot 2022-11-19 23:06:27 +08:00
parent 60b6d68339
commit e3c162d833

View File

@ -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