argo-cd/errors/errors.go

13 lines
208 B
Go
Raw Normal View History

2018-02-15 00:53:07 +00:00
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)
}
}