Wrap error returned from tracker HTTP request director

This commit is contained in:
Matt Joiner 2022-11-29 10:42:32 +11:00
parent 3d49eec03a
commit 17058f76f7
No known key found for this signature in database
GPG Key ID: 6B990B8185E7F782
1 changed files with 1 additions and 1 deletions

View File

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