From e81eca405539a18f685ff3cb8c5d7a6f7eea12ca Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Sun, 27 Oct 2019 11:08:05 +0000 Subject: [PATCH] fshttp: fix error reporting on tpslimit token bucket errors --- fs/fshttp/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/fshttp/http.go b/fs/fshttp/http.go index 304be7c1a..cb4e219ac 100644 --- a/fs/fshttp/http.go +++ b/fs/fshttp/http.go @@ -319,7 +319,7 @@ func (t *Transport) RoundTrip(req *http.Request) (resp *http.Response, err error if tpsBucket != nil { tbErr := tpsBucket.Wait(req.Context()) if tbErr != nil { - fs.Errorf(nil, "HTTP token bucket error: %v", err) + fs.Errorf(nil, "HTTP token bucket error: %v", tbErr) } } // Force user agent