MCPcopy
hub / github.com/cortexlabs/cortex / Error

Function Error

pkg/operator/lib/exit/exit.go:43–59  ·  view source on GitHub ↗
(err error, wrapStrs ...string)

Source from the content-addressed store, hash-verified

41}
42
43func Error(err error, wrapStrs ...string) {
44 for _, str := range wrapStrs {
45 err = errors.Wrap(err, str)
46 }
47
48 if err != nil && !errors.IsNoTelemetry(err) {
49 telemetry.Error(err)
50 }
51
52 if err != nil && !errors.IsNoPrint(err) {
53 operatorLogger.Error(err)
54 }
55
56 telemetry.Close()
57
58 os.Exit(1)
59}

Callers 1

mainFunction · 0.92

Calls 6

WrapFunction · 0.92
IsNoTelemetryFunction · 0.92
ErrorFunction · 0.92
IsNoPrintFunction · 0.92
CloseFunction · 0.92
ErrorMethod · 0.80

Tested by

no test coverage detected