In #7527 we improved the message to show underlying error and backtrace.
However, we should also improve the other part of the message, namely:
You must recompile Ruby with OpenSSL support or change the sources in your Gemfile from 'https' to 'http'. Instructions for compiling with OpenSSL using RVM are available at https://rvm.io/packages/openssl.
This message doesn't add much value, so we should remove it entirely or maybe change it to something along the lines of:
Could not load OpenSSL, you ruby might not be compiled with OpenSSL support. The underlying error was #{error.class}: #{error}\n#{error.backtrace.join("\n ")}"
The reason is:
I don't think we want to explicitly recommend switching sources to http.
The RVM advice seems too specific to me, and it redirects to a page that's not very clear about how it helps to fix this issue.
In #7527 we improved the message to show underlying error and backtrace.
However, we should also improve the other part of the message, namely:
This message doesn't add much value, so we should remove it entirely or maybe change it to something along the lines of:
The reason is:
Originally posted by @deivid-rodriguez in https://github.com/rubygems/bundler/pull/7527