// onError will patch the FieldExport with the given error and return the
// same error back
onError will patch the FieldExport with the given error and return the
same error back
// onError will patch the FieldExport with the given error and return the // same error back
func (r *fieldExportReconciler) onError(
	ctx context.Context,
	res *ackv1alpha1.FieldExport,
	err error,
) error {
	var terminal ackerr.TerminalError
	if errors.As(err, &terminal) {
		r.patchTerminalCondition(ctx, res, err)
	} else {
		r.patchRecoverableCondition(ctx, res, err)
	}
	return err
}
func ( r * fieldExportReconciler ) onError ( ctx context . Context , res * ackv1alpha1 . FieldExport , err error , ) error { var terminal ackerr . TerminalError if errors . As ( err , & terminal ) { r . patchTerminalCondition ( ctx , res , err ) } else { r . patchRecoverableCondition ( ctx , res , err ) } return err }
onError will patch the FieldExport with the given error and return the
same error back
onError will patch the FieldExport with the given error and return the same error back