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

Function FirstError

pkg/lib/errors/multi.go:68–75  ·  view source on GitHub ↗
(errs ...error)

Source from the content-addressed store, hash-verified

66}
67
68func FirstError(errs ...error) error {
69 for _, err := range errs {
70 if err != nil {
71 return err
72 }
73 }
74 return nil
75}
76
77func MapHasError(errs map[string]error) bool {
78 for _, err := range errs {

Callers 15

NewForFileFunction · 0.92
ExtractAPIConfigsFunction · 0.92
ParseYAMLBytesFunction · 0.92
RunFirstErrFunction · 0.92
closeMethod · 0.92
handleJobSubmissionErrorFunction · 0.92
StopJobFunction · 0.92
ManageJobResourcesFunction · 0.92
checkIfJobCompletedFunction · 0.92
DeleteEvictedPodsFunction · 0.92
readCLIConfigFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected