mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-16 19:56:51 +08:00
fix: better error return
This commit is contained in:
parent
dbbd499349
commit
6d89bddf29
|
@ -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.
|
// If the request failed anyway, make sure we don't use this client.
|
||||||
_, resErr := doh.resetClient(ctx, err)
|
_, 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
|
return msg, err
|
||||||
|
|
Loading…
Reference in New Issue
Block a user