mirror of
https://github.com/docker/compose.git
synced 2025-06-22 14:40:13 +02:00
report cancelled pull after another one failed
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
944e5e67a1
commit
7f9101845d
@ -204,6 +204,16 @@ func (s *composeService) pullServiceImage(ctx context.Context, service types.Ser
|
|||||||
Platform: platform,
|
Platform: platform,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if ctx.Err() != nil {
|
||||||
|
w.Event(progress.Event{
|
||||||
|
ID: service.Name,
|
||||||
|
Status: progress.Warning,
|
||||||
|
Text: "Warning",
|
||||||
|
StatusText: "Interrupted",
|
||||||
|
})
|
||||||
|
return "", nil
|
||||||
|
}
|
||||||
|
|
||||||
// check if has error and the service has a build section
|
// check if has error and the service has a build section
|
||||||
// then the status should be warning instead of error
|
// then the status should be warning instead of error
|
||||||
if err != nil && service.Build != nil {
|
if err != nil && service.Build != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user