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

Re-raise the LoadError if it is not for the file we are trying to load #18343

Merged
merged 1 commit into from
Jan 9, 2019

Conversation

bdunne
Copy link
Member

@bdunne bdunne commented Jan 9, 2019

Previously this could mask LoadErrors when the file we are trying to load is found and loaded, but it requires another file which is not found, raises LoadError and incorrectly runs the code in the rescue block.

Previously this could mask LoadErrors when the file we are trying to load
is found and loaded, but it requires another file which is not found,
raises LoadError and incorrectly runs the code in the rescue block.
@bdunne
Copy link
Member Author

bdunne commented Jan 9, 2019

I tried to get the tests working, but can not accurately reproduce the problem in rspec.

@miq-bot
Copy link
Member

miq-bot commented Jan 9, 2019

Checked commit bdunne@87cb1fd with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 0 offenses detected
Everything looks fine. 🏆

@carbonin
Copy link
Member

carbonin commented Jan 9, 2019

@Fryguy @jrafanie this looks good to me. Any other opinions?

Copy link
Member

@jrafanie jrafanie left a comment

Choose a reason for hiding this comment

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

:shipit: It's too bad the tests couldn't recreate it exactly. I'm surprised how far you got with them.

@jrafanie jrafanie merged commit 1ac113a into ManageIQ:master Jan 9, 2019
@jrafanie jrafanie added this to the Sprint 103 Ending Jan 21, 2019 milestone Jan 9, 2019
@jrafanie jrafanie self-assigned this Jan 9, 2019
@bdunne bdunne deleted the include_concern_errors branch January 9, 2019 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants