Skip to content

Commit

Permalink
Include error message in pull warning/errors
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Fontein <[email protected]>
  • Loading branch information
felixfontein authored and ndeloof committed Mar 25, 2024
1 parent 3371227 commit 2e85b3c
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions pkg/compose/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 2e85b3c

Please sign in to comment.