MCPcopy
hub / github.com/docker/compose / getUnwrappedErrorMessage

Function getUnwrappedErrorMessage

pkg/compose/pull.go:168–174  ·  pkg/compose/pull.go::getUnwrappedErrorMessage
(err error)

Source from the content-addressed store, hash-verified

166}
167
168func getUnwrappedErrorMessage(err error) string {
169 derr := errors.Unwrap(err)
170 if derr != nil {
171 return getUnwrappedErrorMessage(derr)
172 }
173 return err.Error()
174}
175
176func (s *composeService) pullServiceImage(ctx context.Context, service types.ServiceConfig, quietPull bool, defaultPlatform string) (string, error) {
177 resource := "Image " + service.Image

Callers 1

pullServiceImageMethod · 0.85

Calls 1

ErrorMethod · 0.80

Tested by

no test coverage detected