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

Function FirstKeyInErrorMap

pkg/lib/errors/multi.go:95–102  ·  view source on GitHub ↗
(errs map[string]error)

Source from the content-addressed store, hash-verified

93}
94
95func FirstKeyInErrorMap(errs map[string]error) string {
96 for k, err := range errs {
97 if err != nil {
98 return k
99 }
100 }
101 return ""
102}
103
104func NonNilErrorMapKeys(errs map[string]error) []string {
105 var keys []string

Callers 1

getAPIsInAllEnvironmentsFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected