summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmily Giurleo <e.m.giurleo@gmail.com>2020-01-23 10:24:41 -0500
committerEmily Giurleo <e.m.giurleo@gmail.com>2020-01-23 10:24:41 -0500
commitbb566b751c1a6e190920dba2d1d356b5b240b721 (patch)
tree55dfd30439e598bbd096bd6ef1317d2a2488e22a
parent524f524362666cb80700430b9f3740f38befb027 (diff)
downloadbundler-bb566b751c1a6e190920dba2d1d356b5b240b721.tar.gz
remove warn call on LoadError
-rw-r--r--lib/bundler/friendly_errors.rb5
-rw-r--r--spec/bundler/friendly_errors_spec.rb5
2 files changed, 0 insertions, 10 deletions
diff --git a/lib/bundler/friendly_errors.rb b/lib/bundler/friendly_errors.rb
index 046a666003..a680756f47 100644
--- a/lib/bundler/friendly_errors.rb
+++ b/lib/bundler/friendly_errors.rb
@@ -24,11 +24,6 @@ module Bundler
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}\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 \
- using RVM are available at https://rvm.io/packages/openssl.
- WARN
when Interrupt
Bundler.ui.error "\nQuitting..."
Bundler.ui.trace error
diff --git a/spec/bundler/friendly_errors_spec.rb b/spec/bundler/friendly_errors_spec.rb
index e7addda3f2..169360c55a 100644
--- a/spec/bundler/friendly_errors_spec.rb
+++ b/spec/bundler/friendly_errors_spec.rb
@@ -123,11 +123,6 @@ RSpec.describe Bundler, "friendly errors" do
expect(Bundler.ui).to receive(:error).with("\nCould not load OpenSSL. LoadError: cannot load such file -- openssl\nbacktrace")
Bundler::FriendlyErrors.log_error(error)
end
-
- it "Bundler.ui receive warn" do
- expect(Bundler.ui).to receive(:warn).with(any_args, :wrap => true)
- Bundler::FriendlyErrors.log_error(error)
- end
end
context "Interrupt" do