mirror of
https://github.com/docker/compose.git
synced 2026-08-28 04:18:05 +00:00
Include error message in pull warning/errors
Signed-off-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
3371227794
commit
2e85b3c265
1 changed files with 8 additions and 6 deletions
|
|
@ -200,18 +200,20 @@ func (s *composeService) pullServiceImage(ctx context.Context, service types.Ser
|
|||
// then the status should be warning instead of error
|
||||
if err != nil && service.Build != nil {
|
||||
w.Event(progress.Event{
|
||||
ID: service.Name,
|
||||
Status: progress.Warning,
|
||||
Text: "Warning",
|
||||
ID: service.Name,
|
||||
Status: progress.Warning,
|
||||
Text: "Warning",
|
||||
StatusText: err.Error(),
|
||||
})
|
||||
return "", WrapCategorisedComposeError(err, PullFailure)
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
w.Event(progress.Event{
|
||||
ID: service.Name,
|
||||
Status: progress.Error,
|
||||
Text: "Error",
|
||||
ID: service.Name,
|
||||
Status: progress.Error,
|
||||
Text: "Error",
|
||||
StatusText: err.Error(),
|
||||
})
|
||||
return "", WrapCategorisedComposeError(err, PullFailure)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue