mirror of https://github.com/docker/compose.git
progress: Stop event on error
Ensures that we set an `endTime` when an error event is published. Signed-off-by: Christopher Crone <christopher.crone@docker.com>
This commit is contained in:
parent
8ad53088a3
commit
9cc04472fb
|
@ -68,8 +68,11 @@ func (w *ttyWriter) Event(e Event) {
|
||||||
}
|
}
|
||||||
if _, ok := w.events[e.ID]; ok {
|
if _, ok := w.events[e.ID]; ok {
|
||||||
event := w.events[e.ID]
|
event := w.events[e.ID]
|
||||||
if event.Status != Done && e.Status == Done {
|
switch e.Status {
|
||||||
event.stop()
|
case Done, Error:
|
||||||
|
if event.Status != e.Status {
|
||||||
|
event.stop()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
event.Status = e.Status
|
event.Status = e.Status
|
||||||
event.Text = e.Text
|
event.Text = e.Text
|
||||||
|
|
Loading…
Reference in New Issue