Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Report original exception when failing to load openssl #7527

Merged
4 commits merged into from Jan 23, 2020

Conversation

p-mongo
Copy link

@p-mongo p-mongo commented Dec 31, 2019

What was the end-user problem that led to this PR?

See #7192.

What was your diagnosis of the problem?

Bundler discards LoadError class and message when reporting it.

What is your fix for the problem, implemented in this PR?

Report class and message of the original exception when reporting LoadError.

Fixes #7192

@welcome
Copy link

welcome bot commented Dec 31, 2019

Thanks for opening a pull request and helping make Bundler better! Someone from the Bundler team will take a look at your pull request shortly and leave any feedback. Please make sure that your pull request has tests for any changes or added functionality.

We use Travis CI to test and make sure your change works functionally and uses acceptable conventions, you can review the current progress of Travis CI in the PR status window below.

If you have any questions or concerns that you wish to ask, feel free to leave a comment in this PR or join our #bundler channel on Slack.

For more information about contributing to the Bundler project feel free to review our CONTRIBUTING guide

@deivid-rodriguez deivid-rodriguez changed the title Report original exception when failing to load openssl, fixes #7192 Report original exception when failing to load openssl Jan 3, 2020
Copy link
Member

@deivid-rodriguez deivid-rodriguez left a comment

Choose a reason for hiding this comment

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

I agree with being verbose by default in this case.

lib/bundler/friendly_errors.rb Outdated Show resolved Hide resolved
Copy link
Member

@deivid-rodriguez deivid-rodriguez left a comment

Choose a reason for hiding this comment

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

Looks good, I only added a comment about the extra warning we are showing, which I don't like too much, but obviously not a blocker for this to get in.

@deivid-rodriguez
Copy link
Member

@bundlerbot merge

ghost pushed a commit that referenced this pull request Jan 23, 2020
7527: Report original exception when failing to load openssl r=deivid-rodriguez a=p-mongo

### What was the end-user problem that led to this PR?

See #7192.

### What was your diagnosis of the problem?

Bundler discards `LoadError` class and message when reporting it.

### What is your fix for the problem, implemented in this PR?

Report class and message of the original exception when reporting `LoadError`.

Fixes #7192

Co-authored-by: Oleg Pudeyev <oleg@bsdpower.com>
Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
Co-authored-by: Emily Giurleo <e.m.giurleo@gmail.com>
@ghost
Copy link

ghost commented Jan 23, 2020

Build succeeded

@ghost ghost merged commit 7aa323a into rubygems:master Jan 23, 2020
ghost pushed a commit that referenced this pull request Jan 27, 2020
7597: Don't call Warn on LoadError r=deivid-rodriguez a=egiurleo

Related to #7192 and #7527. When trying to run bundler without OpenSSL, the resulting warning recommends recompiling Ruby, changing the Gemfile sources to http, and then gives an RVM-specific link that won't be helpful for everyone.

I think the error message is now specific enough to stand on its own and help people debug, so we should remove the warning entirely. (Open to other opinions, though.)

Co-authored-by: Emily Giurleo <e.m.giurleo@gmail.com>
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SSLError does not report the actual problem
4 participants