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

Function preStartResultErr

pkg/compose/pre_start.go:249–257  ·  view source on GitHub ↗
(serviceName string, index int, res container.WaitResponse)

Source from the content-addressed store, hash-verified

247}
248
249func preStartResultErr(serviceName string, index int, res container.WaitResponse) error {
250 if res.Error != nil {
251 return fmt.Errorf("service %q pre_start[%d] wait error: %s", serviceName, index, res.Error.Message)
252 }
253 if res.StatusCode != 0 {
254 return fmt.Errorf("service %q pre_start[%d] exited with code %d", serviceName, index, res.StatusCode)
255 }
256 return nil
257}
258
259// streamPreStartLogs returns a channel that is closed once the hook log stream
260// has been fully drained (or never opened). Callers must wait on it before

Callers 1

waitPreStartFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected