Wrap error returned from tracker HTTP request director
This commit is contained in:
parent
3d49eec03a
commit
17058f76f7
|
@ -100,7 +100,7 @@ func (cl Client) Announce(ctx context.Context, ar AnnounceRequest, opt AnnounceO
|
|||
if opt.HttpRequestDirector != nil {
|
||||
err = opt.HttpRequestDirector(req)
|
||||
if err != nil {
|
||||
err = fmt.Errorf("error modifying HTTP request: %s", err)
|
||||
err = fmt.Errorf("error modifying HTTP request: %w", err)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue