package panicIf

// Error panics if it has a non-nil error.
func Error(err error) {
	if err == nil {
		return
	}
	panic(err)
}
