diff options
author | Emily Giurleo <e.m.giurleo@gmail.com> | 2020-01-22 15:29:31 -0500 |
---|---|---|
committer | Emily Giurleo <e.m.giurleo@gmail.com> | 2020-01-22 15:29:31 -0500 |
commit | 7aa323a8396782b351e95bfa3f3456bd2db3c682 (patch) | |
tree | 3c727700d1fedf59d6becb6dc2751b39baedb906 /lib | |
parent | 0fb17fce4068f6f82bcbfca0515e0a40401c3143 (diff) | |
download | bundler-7aa323a8396782b351e95bfa3f3456bd2db3c682.tar.gz |
always print backtrace on LoadError
Diffstat (limited to 'lib')
-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 9d8b67f55a..046a666003 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. #{error.class}: #{error}" + Bundler.ui.error "\nCould not load OpenSSL. #{error.class}: #{error}\n#{error.backtrace.join("\n ")}" 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 \ |