MCPcopy
hub / github.com/operator-framework/operator-sdk / CheckError

Function CheckError

hack/generate/samples/internal/pkg/utils.go:29–34  ·  view source on GitHub ↗

CheckError will exit with exit code 1 when err is not nil.

(msg string, err error)

Source from the content-addressed store, hash-verified

27
28// CheckError will exit with exit code 1 when err is not nil.
29func CheckError(msg string, err error) {
30 if err != nil {
31 log.Errorf("error %s: %s", msg, err)
32 os.Exit(1)
33 }
34}
35
36// StripBundleAnnotations removes all annotations applied to bundle manifests and metadata
37// by operator-sdk/internal/annotations/metrics annotators. Doing so decouples samples

Callers 15

GenerateSampleFunction · 0.92
PrepareMethod · 0.92
RunMethod · 0.92
implementingWebhooksMethod · 0.92
implementingMetricsMethod · 0.92
implementingAlertsMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected