argo-cd/errors/errors.go
2018-02-14 16:56:17 -08:00

12 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)
}
}