mirror of
https://github.com/argoproj/argo-cd
synced 2026-05-23 01:08:33 +00:00
13 lines
208 B
Go
13 lines
208 B
Go
|
|
package errors
|
||
|
|
|
||
|
|
import (
|
||
|
|
log "github.com/sirupsen/logrus"
|
||
|
|
)
|
||
|
|
|
||
|
|
// CheckError is a convenience function to exit if there was error is non-nil
|
||
|
|
func CheckError(err error) {
|
||
|
|
if err != nil {
|
||
|
|
log.Fatal(err)
|
||
|
|
}
|
||
|
|
}
|