From 2e85b3c265dbec888a0dc39d0abf685b7b0b1ae4 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Tue, 27 Feb 2024 20:49:29 +0100 Subject: [PATCH] Include error message in pull warning/errors Signed-off-by: Felix Fontein --- pkg/compose/pull.go | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pkg/compose/pull.go b/pkg/compose/pull.go index 0a85ef4e..2ec57542 100644 --- a/pkg/compose/pull.go +++ b/pkg/compose/pull.go @@ -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) }