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

Function IsNoTelemetry

pkg/lib/errors/error.go:123–128  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

121}
122
123func IsNoTelemetry(err error) bool {
124 if cortexError, ok := err.(*Error); ok {
125 return cortexError.NoTelemetry
126 }
127 return false
128}
129
130func SetNoTelemetry(err error) error {
131 cortexError := WithStack(err).(*Error)

Callers 5

ErrorFunction · 0.92
ErrorFunction · 0.92
PanicFunction · 0.92
ErrorFunction · 0.92
respondErrorCodeFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected