Skip to content

Commit 2e85b3c

Browse files
felixfonteinndeloof
authored andcommitted
Include error message in pull warning/errors
Signed-off-by: Felix Fontein <[email protected]>
1 parent 3371227 commit 2e85b3c

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

pkg/compose/pull.go

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -200,18 +200,20 @@ func (s *composeService) pullServiceImage(ctx context.Context, service types.Ser
200200
// then the status should be warning instead of error
201201
if err != nil && service.Build != nil {
202202
w.Event(progress.Event{
203-
ID: service.Name,
204-
Status: progress.Warning,
205-
Text: "Warning",
203+
ID: service.Name,
204+
Status: progress.Warning,
205+
Text: "Warning",
206+
StatusText: err.Error(),
206207
})
207208
return "", WrapCategorisedComposeError(err, PullFailure)
208209
}
209210

210211
if err != nil {
211212
w.Event(progress.Event{
212-
ID: service.Name,
213-
Status: progress.Error,
214-
Text: "Error",
213+
ID: service.Name,
214+
Status: progress.Error,
215+
Text: "Error",
216+
StatusText: err.Error(),
215217
})
216218
return "", WrapCategorisedComposeError(err, PullFailure)
217219
}

0 commit comments

Comments
 (0)