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

Function getCortexError

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

Source from the content-addressed store, hash-verified

100}
101
102func getCortexError(err error) *Error {
103 if cortexError, ok := err.(*Error); ok {
104 return cortexError
105 }
106 return nil
107}
108
109func GetKind(err error) string {
110 if cortexError, ok := err.(*Error); ok {

Callers 1

WithStackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected