MCPcopy Index your code
hub / github.com/cloudfoundry/cli / EnrichAPIErrors

Function EnrichAPIErrors

actor/actionerror/enrich_api_errors.go:5–12  ·  view source on GitHub ↗
(e error)

Source from the content-addressed store, hash-verified

3import "code.cloudfoundry.org/cli/v8/api/cloudcontroller/ccerror"
4
5func EnrichAPIErrors(e error) error {
6 switch err := e.(type) {
7 case ccerror.ServiceOfferingNameAmbiguityError:
8 return ServiceOfferingNameAmbiguityError{err}
9 default:
10 return e
11 }
12}

Calls

no outgoing calls

Tested by

no test coverage detected