mirror of
https://github.com/argoproj/argo-cd.git
synced 2026-02-28 13:38:47 +01:00
13 lines
220 B
Go
13 lines
220 B
Go
package errors
|
|
|
|
import (
|
|
log "github.com/sirupsen/logrus"
|
|
)
|
|
|
|
// CheckError is a convenience function to exit if an error is non-nil and exit if it was
|
|
func CheckError(err error) {
|
|
if err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
}
|