// UpdatedError updates the properties of an error.
UpdatedError updates the properties of an error.
// UpdatedError updates the properties of an error .
func UpdatedError(lastError *lssv1alpha1.Error, operation, reason, message string) *lssv1alpha1.Error {
	newError := &lssv1alpha1.Error{
		Operation:          operation,
		Reason:             reason,
		Message:            message,
		LastTransitionTime: metav1.Now(),
		LastUpdateTime:     metav1.Now(),
	}
	if lastError != nil && lastError.Operation == operation {
		newError.LastTransitionTime = lastError.LastTransitionTime
	}
	return newError
}
func UpdatedError ( lastError * lssv1alpha1 . Error , operation , reason , message string ) * lssv1alpha1 . Error { newError := & lssv1alpha1 . Error { Operation : operation , Reason : reason , Message : message , LastTransitionTime : metav1 . Now ( ) , LastUpdateTime : metav1 . Now ( ) , } if lastError != nil && lastError . Operation == operation { newError . LastTransitionTime = lastError . LastTransitionTime } return newError }
UpdatedError updates the properties of an error.
UpdatedError updates the properties of an error .