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

[config:import] return exit code on error (#3083) #3084

Merged
merged 2 commits into from
Jan 18, 2017
Merged

[config:import] return exit code on error (#3083) #3084

merged 2 commits into from
Jan 18, 2017

Conversation

cburschka
Copy link
Contributor

No description provided.

@jmolivas jmolivas modified the milestone: 1.0.0-rc15 Jan 9, 2017
$io->info($this->trans('commands.config.import.messages.importing'));
$config_importer->import();
return TRUE;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be return 0; ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The execute() function is expected to return an exit code (1 on failure, 0 or nothing on success), while the private configImport() function is expected to return a success boolean (TRUE on success, FALSE or nothing on failure). So it's weird, but consistent with the current usage...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad, this is a private scope function. not the execute function.

@jmolivas jmolivas merged commit 47785d5 into hechoendrupal:master Jan 18, 2017
@jmolivas
Copy link
Member

@cburschka Thanks for your contribution, your PR was merged. This will be included on the next release.

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.

3 participants