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

Function ErrorUnexpected

pkg/lib/errors/errors.go:30–40  ·  view source on GitHub ↗
(msgs ...interface{})

Source from the content-addressed store, hash-verified

28)
29
30func ErrorUnexpected(msgs ...interface{}) error {
31 strs := make([]string, len(msgs))
32 for i, msg := range msgs {
33 strs[i] = s.ObjFlatNoQuotes(msg)
34 }
35
36 return WithStack(&Error{
37 Kind: ErrUnexpected,
38 Message: strings.Join(strs, ": "),
39 })
40}
41
42func ListOfErrors(errKind string, shouldPrint bool, errors ...error) error {
43 var errorsContents string

Callers 15

AddNewPolicyVersionFunction · 0.92
ExtractAPIConfigsFunction · 0.92
enqueueToSQSMethod · 0.92
ScaleMethod · 0.92
GetInFlightRequestsMethod · 0.92
GetAutoscalingSpecMethod · 0.92
AwakenMethod · 0.92
autoscaleFnMethod · 0.92
GetInFlightRequestsMethod · 0.92
GetAutoscalingSpecMethod · 0.92
routeToServiceMethod · 0.92

Calls 1

WithStackFunction · 0.85

Tested by 1