Skip to content

Commit

Permalink
break if there is render error
Browse files Browse the repository at this point in the history
  • Loading branch information
vbauerster committed Dec 6, 2023
1 parent adefe39 commit 3a4a40c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions progress.go
Original file line number Diff line number Diff line change
@@ -297,6 +297,7 @@ func (p *Progress) serve(s *pState, cw *cwriter.Writer) {
for i := 0; i == 0 || <-update; i++ {
if err := s.render(w); err != nil {
_, _ = fmt.Fprintln(s.debugOut, err.Error())
break
}
s.hm.state(update)
}

0 comments on commit 3a4a40c

Please sign in to comment.