Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added return value for the validation result in processImport function #70

Merged

Conversation

koenner01
Copy link
Contributor

Currently there is no clear way of knowing if the import validation ran correctly when calling the processImport function in FireGento\FastSimpleImport\Model\Importer. Only the _importData function is adding errors so calling getErrorMessages() after the processImport function is not an option to see if the validation was succesfull.

By returning the validation result in the processImport it allows for implementations which can run when the validation fails (e.g throwing exceptions, fixing the data, etc.)

@avstudnitz avstudnitz merged commit 1cff24d into firegento:master Aug 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants