Skip to content

Commit 5b705f4

Browse files
authored
rename retires to attempts in timeout error message (#1303)
1 parent d8df82e commit 5b705f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

retry.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -353,9 +353,9 @@ func (r *retryHTTP) execute() (res *http.Response, err error) {
353353
return nil, err
354354
}
355355
if res != nil {
356-
return nil, fmt.Errorf("timeout after %s and %v retries. HTTP Status: %v. Hanging?", r.timeout, retryCounter, res.StatusCode)
356+
return nil, fmt.Errorf("timeout after %s and %v attempts. HTTP Status: %v. Hanging?", r.timeout, retryCounter, res.StatusCode)
357357
}
358-
return nil, fmt.Errorf("timeout after %s and %v retries. Hanging?", r.timeout, retryCounter)
358+
return nil, fmt.Errorf("timeout after %s and %v attempts. Hanging?", r.timeout, retryCounter)
359359
}
360360
}
361361
if requestGUIDReplacer == nil {

0 commit comments

Comments
 (0)