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

Function fatal

utils.go:56–58  ·  view source on GitHub ↗

fatal prints the error's details if it is a libcontainer specific error type then exits the program with an exit status of 1.

(err error)

Source from the content-addressed store, hash-verified

54// fatal prints the error's details if it is a libcontainer specific error type
55// then exits the program with an exit status of 1.
56func fatal(err error) {
57 fatalWithCode(err, 1)
58}
59
60func fatalWithCode(err error, ret int) {
61 // Make sure the error is written to the logger.

Callers 1

mainFunction · 0.85

Calls 1

fatalWithCodeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…