diff --git a/bar.go b/bar.go index a9cf914..b3585a6 100644 --- a/bar.go +++ b/bar.go @@ -80,6 +80,7 @@ case op := <-operateState: op(bs) case <-ctx.Done(): + bs.aborted = !bs.completed bs.decoratorShutdownNotify() close(done) return @@ -315,7 +316,7 @@ fmt.Fprintln(s.debugOut, p) _, _ = s.debugOut.Write(debug.Stack()) } - s.aborted = true + s.aborted = !s.completed s.extender = makePanicExtender(p) reader, lines = s.extender(nil, s.reqWidth, stat) b.recoveredPanic = p