Codebase list golang-github-vbauerster-mpb / 244ad81
minor: pass string instead of interface Vladimir Bauer 3 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
293293 if err != nil {
294294 s.heapUpdated = false
295295 render = func() error { return nil }
296 _, _ = fmt.Fprintln(s.debugOut, err)
296 _, _ = fmt.Fprintln(s.debugOut, err.Error())
297297 p.cancel() // cancel all bars
298298 }
299299 case <-p.done:
300300 for s.heapUpdated {
301301 err := render()
302302 if err != nil {
303 _, _ = fmt.Fprintln(s.debugOut, err)
303 _, _ = fmt.Fprintln(s.debugOut, err.Error())
304304 return
305305 }
306306 }