fshttp: fix error reporting on tpslimit token bucket errors

This commit is contained in:
Nick Craig-Wood 2019-10-27 11:08:05 +00:00
parent ee3215ac76
commit e81eca4055
1 changed files with 1 additions and 1 deletions

View File

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