MCPcopy Index your code
hub / github.com/aptly-dev/aptly / Fatal

Function Fatal

context/context.go:73–79  ·  view source on GitHub ↗

Fatal panics and aborts execution with exit code 1

(err error)

Source from the content-addressed store, hash-verified

71
72// Fatal panics and aborts execution with exit code 1
73func Fatal(err error) {
74 returnCode := 1
75 if err == commander.ErrFlagError || err == commander.ErrCommandError {
76 returnCode = 2
77 }
78 panic(&FatalError{ReturnCode: returnCode, Message: err.Error()})
79}
80
81// Config loads and returns current configuration
82func (context *AptlyContext) Config() *utils.ConfigStructure {

Callers 4

configMethod · 0.85
NewCollectionFactoryMethod · 0.85
PackagePoolMethod · 0.85
pgpProviderMethod · 0.85

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected