MCPcopy Index your code
hub / github.com/cortexlabs/cortex / exit

Function exit

cmd/activator/main.go:205–219  ·  view source on GitHub ↗
(log *zap.SugaredLogger, err error, wrapStrs ...string)

Source from the content-addressed store, hash-verified

203}
204
205func exit(log *zap.SugaredLogger, err error, wrapStrs ...string) {
206 if err == nil {
207 os.Exit(0)
208 }
209
210 for _, str := range wrapStrs {
211 err = errors.Wrap(err, str)
212 }
213
214 telemetry.Error(err)
215 if !errors.IsNoPrint(err) {
216 log.Fatal(err)
217 }
218 os.Exit(1)
219}

Callers 1

mainFunction · 0.70

Calls 3

WrapFunction · 0.92
ErrorFunction · 0.92
IsNoPrintFunction · 0.92

Tested by

no test coverage detected