diff options
author | Oleg Pudeyev <oleg@bsdpower.com> | 2019-12-30 22:07:45 -0500 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2020-01-03 11:14:35 +0100 |
commit | 0005967c7a573acdd63affa68e02e8072e7ed825 (patch) | |
tree | 713fc948021c5df4744160c559c9321edd583d07 | |
parent | e70d0f3d02c8c084b61969e71d1fa28a15a6d0ca (diff) | |
download | bundler-0005967c7a573acdd63affa68e02e8072e7ed825.tar.gz |
Report original exception when failing to load openssl, fixes #7192
-rw-r--r-- | lib/bundler/friendly_errors.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/friendly_errors.rb b/lib/bundler/friendly_errors.rb index 080697b02c..8c22b54972 100644 --- a/lib/bundler/friendly_errors.rb +++ b/lib/bundler/friendly_errors.rb @@ -23,7 +23,7 @@ module Bundler Bundler.ui.error error.message when LoadError raise error unless error.message =~ /cannot load such file -- openssl|openssl.so|libcrypto.so/ - Bundler.ui.error "\nCould not load OpenSSL." + Bundler.ui.error "\nCould not load OpenSSL: #{error.class}: #{error}" Bundler.ui.warn <<-WARN, :wrap => true You must recompile Ruby with OpenSSL support or change the sources in your \ Gemfile from 'https' to 'http'. Instructions for compiling with OpenSSL \ |