projects
/
btrtrc.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d49eec
)
Wrap error returned from tracker HTTP request director
author
Matt Joiner <anacrolix@gmail.com>
Mon, 28 Nov 2022 23:42:32 +0000 (10:42 +1100)
committer
Matt Joiner <anacrolix@gmail.com>
Mon, 28 Nov 2022 23:45:38 +0000 (10:45 +1100)
tracker/http/http.go
patch
|
blob
|
history
diff --git
a/tracker/http/http.go
b/tracker/http/http.go
index 82c3acd6e1dcc32a9cd8f5058fef29f9a423b7f3..6a9e0ffa7f01d7c2fd644b6f1c3fc59b89209c21 100644
(file)
--- a/
tracker/http/http.go
+++ b/
tracker/http/http.go
@@
-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
}
}