CheckError will exit with exit code 1 when err is not nil.
(msg string, err error)
| 27 | |
| 28 | // CheckError will exit with exit code 1 when err is not nil. |
| 29 | func 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 |
no outgoing calls
no test coverage detected