MCPcopy
hub / github.com/opencontainers/runc / fatalWithCode

Function fatalWithCode

utils.go:60–68  ·  view source on GitHub ↗
(err error, ret int)

Source from the content-addressed store, hash-verified

58}
59
60func fatalWithCode(err error, ret int) {
61 // Make sure the error is written to the logger.
62 logrus.Error(err)
63 if !logrusToStderr() {
64 fmt.Fprintln(os.Stderr, err)
65 }
66
67 os.Exit(ret)
68}
69
70// setupSpec performs initial setup based on the cli.Context for the container
71func setupSpec(context *cli.Context) (*specs.Spec, error) {

Callers 2

fatalFunction · 0.85
exec.goFile · 0.85

Calls 2

logrusToStderrFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…