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

Function GetMetadata

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

Source from the content-addressed store, hash-verified

114}
115
116func GetMetadata(err error) interface{} {
117 if cortexError, ok := err.(*Error); ok {
118 return cortexError.Metadata
119 }
120 return nil
121}
122
123func IsNoTelemetry(err error) bool {
124 if cortexError, ok := err.(*Error); ok {

Callers 1

EventFromExceptionFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected