MCPcopy Create free account
hub / github.com/containerd/nerdctl / HandleExitCoder

Function HandleExitCoder

pkg/errutil/exit_coder.go:47–54  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

45}
46
47func HandleExitCoder(err error) {
48 if err == nil {
49 return
50 }
51 if exitErr, ok := err.(ExitCoder); ok {
52 os.Exit(exitErr.ExitCode())
53 }
54}

Callers 1

mainFunction · 0.92

Calls 1

ExitCodeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…