MCPcopy Create free account
hub / github.com/Mirantis/cri-dockerd / transformStartContainerError

Function transformStartContainerError

core/container_start.go:51–60  ·  view source on GitHub ↗

transformStartContainerError does regex parsing on returned error for where container runtimes are giving less than ideal error messages.

(err error)

Source from the content-addressed store, hash-verified

49// transformStartContainerError does regex parsing on returned error
50// for where container runtimes are giving less than ideal error messages.
51func transformStartContainerError(err error) error {
52 if err == nil {
53 return nil
54 }
55 matches := startRE.FindStringSubmatch(err.Error())
56 if len(matches) > 0 {
57 return fmt.Errorf("executable not found in $PATH")
58 }
59 return err
60}

Callers 1

StartContainerMethod · 0.85

Calls 2

lenFunction · 0.85
ErrorMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…