Skip to content

Commit

Permalink
minor: explicit ErrMaxRetry.Error()
Browse files Browse the repository at this point in the history
  • Loading branch information
vbauerster committed Dec 23, 2023
1 parent 9077d3c commit 984ff98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion part.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ func (p *Part) download(client *http.Client, req *http.Request, timeout, sleep t
atomic.AddUint32(&globTry, 1)
case p.maxTry:
atomic.AddUint32(&globTry, ^uint32(0))
fmt.Fprintf(p.progress, "%s%s\n", p.dlogger.Prefix(), ErrMaxRetry)
fmt.Fprintf(p.progress, "%s%s\n", p.dlogger.Prefix(), ErrMaxRetry.Error())
if atomic.LoadUint32(&bar.initialized) == 1 {
bar.Abort(true)
}
Expand Down

0 comments on commit 984ff98

Please sign in to comment.