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

Function exit

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

Source from the content-addressed store, hash-verified

247}
248
249func exit(log *zap.SugaredLogger, err error, wrapStrs ...string) {
250 if err == nil {
251 os.Exit(0)
252 }
253
254 for _, str := range wrapStrs {
255 err = errors.Wrap(err, str)
256 }
257
258 telemetry.Error(err)
259 if !errors.IsNoPrint(err) {
260 log.Fatal(err)
261 }
262
263 os.Exit(1)
264}

Callers 1

mainFunction · 0.70

Calls 3

WrapFunction · 0.92
ErrorFunction · 0.92
IsNoPrintFunction · 0.92

Tested by

no test coverage detected