// TryUpdateError tries to update the properties of the last error if the err is an internal landscaper services error.
TryUpdateError tries to update the properties of the last error if the err is an internal landscaper services error.
// TryUpdateError tries to update the properties of the last error if the err is an internal landscaper services error .
func TryUpdateError(lastErr *lssv1alpha1.Error, err error) *lssv1alpha1.Error {
	if err == nil {
		return nil
	}
	if intErr, ok := IsError(err); ok {
		return intErr.UpdatedError(lastErr)
	}
	return nil
}
func TryUpdateError ( lastErr * lssv1alpha1 . Error , err error ) * lssv1alpha1 . Error { if err == nil { return nil } if intErr , ok := IsError ( err ) ; ok { return intErr . UpdatedError ( lastErr ) } return nil }
TryUpdateError tries to update the properties of the last error if the err is an internal landscaper services error.
TryUpdateError tries to update the properties of the last error if the err is an internal landscaper services error .