argo-cd/errors/errors.go

13 lines
220 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 an error is non-nil and exit if it was
2018-02-15 00:53:07 +00:00
func CheckError(err error) {
if err != nil {
log.Fatal(err)
}
}